|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pushingpixels.substance.api.watermark.SubstanceNullWatermark
public class SubstanceNullWatermark
Implementation of SubstanceWatermark
that paints a translucent fill
(with no pattern). This class is part of officially supported API.
Constructor Summary | |
---|---|
SubstanceNullWatermark()
Simple constructor. |
Method Summary | |
---|---|
void |
dispose()
Disposes the memory associated with this watermark. |
void |
drawWatermarkImage(java.awt.Graphics graphics,
java.awt.Component c,
int x,
int y,
int width,
int height)
Draws the watermark on the specified graphics context in the specified region. |
java.lang.String |
getDisplayName()
Returns the display name of this trait. |
void |
previewWatermark(java.awt.Graphics g,
SubstanceSkin skin,
int x,
int y,
int width,
int height)
Draws the preview of the watermark image. |
boolean |
updateWatermarkImage(SubstanceSkin skin)
Updates the current watermark image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubstanceNullWatermark()
Method Detail |
---|
public void drawWatermarkImage(java.awt.Graphics graphics, java.awt.Component c, int x, int y, int width, int height)
SubstanceWatermark
drawWatermarkImage
in interface SubstanceWatermark
graphics
- Graphics context.c
- Component that is painted.x
- Left X of the region.y
- Top Y of the region.width
- Region width.height
- Region height.public void previewWatermark(java.awt.Graphics g, SubstanceSkin skin, int x, int y, int width, int height)
SubstanceWatermark
previewWatermark
in interface SubstanceWatermark
g
- Graphic context.skin
- Optional skin to use for the preview. Can be ignored by the
implementation.x
- the x coordinate of the watermark to be drawn.y
- The y coordinate of the watermark to be drawn.width
- The width of the watermark to be drawn.height
- The height of the watermark to be drawn.public boolean updateWatermarkImage(SubstanceSkin skin)
SubstanceWatermark
updateWatermarkImage
in interface SubstanceWatermark
skin
- Skin for the watermark.
true
if the watermark has been updated successfully,
false
otherwise.public java.lang.String getDisplayName()
SubstanceTrait
this
trait. This method is part
of officially supported API.
getDisplayName
in interface SubstanceTrait
this
trait.public void dispose()
SubstanceWatermark
this
watermark.
dispose
in interface SubstanceWatermark
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |