|
|||||||||
| 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. |
void |
previewWatermark(java.awt.Graphics g,
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 interface org.jvnet.substance.api.trait.SubstanceTrait |
|---|
getDisplayName |
| 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(SubstanceSkin skin)
skin - Skin for the watermark.
true if the watermark has been updated successfully,
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 | ||||||||