| org.jvnet.substance.watermark.SubstanceWatermark
All known Subclasses: org.jvnet.substance.watermark.SubstanceCrosshatchWatermark, org.jvnet.substance.watermark.SubstanceImageWatermark, org.jvnet.substance.watermark.SubstanceNoneWatermark, org.jvnet.substance.watermark.SubstanceNoiseWatermark, org.jvnet.substance.watermark.SubstanceStripeWatermark, org.jvnet.substance.watermark.SubstanceMetalWallWatermark, org.jvnet.substance.watermark.SubstanceNullWatermark, test.check.SubstanceDiagonalGradientWatermark, test.check.SubstanceVerticalGradientWatermark, org.jvnet.substance.watermark.SubstanceKatakanaWatermark, org.jvnet.substance.watermark.SubstanceBinaryWatermark, test.check.SubstanceCoffeeBeansWatermark, org.jvnet.substance.watermark.SubstanceLatchWatermark, org.jvnet.substance.watermark.SubstanceMosaicWatermark, org.jvnet.substance.watermark.SubstanceBubblesWatermark,
SubstanceWatermark | public interface SubstanceWatermark extends SubstanceTrait(Code) | | Interface for watermarks. This class is part of officially supported API.
author: Kirill Grouchnikov |
dispose | public void dispose()(Code) | | Disposes the memory associated with this watermark.
|
drawWatermarkImage | public void drawWatermarkImage(Graphics graphics, Component c, int x, int y, int width, int height)(Code) | | Draws the watermark on the specified graphics context in the specified
region.
Parameters: graphics - Graphics context. Parameters: c - Component that is painted. Parameters: x - Left X of the region. Parameters: y - Top Y of the region. Parameters: width - Region width. Parameters: height - Region height. |
previewWatermark | public void previewWatermark(Graphics g, int x, int y, int width, int height)(Code) | | Draws the preview of the watermark image.
Parameters: g - Graphic context. Parameters: x - the x coordinate of the watermark to be drawn. Parameters: y - The y coordinate of the watermark to be drawn. Parameters: width - The width of the watermark to be drawn. Parameters: height - The height of the watermark to be drawn. |
updateWatermarkImage | public boolean updateWatermarkImage()(Code) | | Updates the current watermark image.
true if the watermark has been updatedsuccessfully, false otherwise. |
|
|