|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SubstanceWatermark
Interface for watermarks. This class is part of officially supported API.
| 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. |
boolean |
isDependingOnTheme()
Returns indication whether this watermark depends on the
current SubstanceTheme. |
void |
previewWatermark(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the preview of the watermark image. |
boolean |
updateWatermarkImage()
Updates the current watermark image. |
| Method Detail |
|---|
void drawWatermarkImage(java.awt.Graphics graphics,
java.awt.Component c,
int x,
int y,
int width,
int height)
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.boolean updateWatermarkImage()
true if the watermark has been updated
successfully, false otherwise.java.lang.String getDisplayName()
SubstanceTraitthis trait. This method is
part of officially supported API.
getDisplayName in interface SubstanceTraitthis trait.boolean isDependingOnTheme()
this watermark depends on the
current SubstanceTheme.
true if this watermark depends on
the current SubstanceTheme,
false otherwise.
void previewWatermark(java.awt.Graphics g,
int x,
int y,
int width,
int height)
g - Graphic context.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.void dispose()
this watermark.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||