| java.lang.Object org.jvnet.substance.watermark.SubstanceImageWatermark
SubstanceImageWatermark | public class SubstanceImageWatermark implements SubstanceWatermark(Code) | | Implementation of
SubstanceWatermark , drawing specified image as
watermark. This class is part of officially supported API.
author: Kirill Grouchnikov author: Chris Hall author: Mark Haag |
origImage | protected BufferedImage origImage(Code) | | The original image (as read from the disk / HTTP connection).
|
origImageLocation | protected String origImageLocation(Code) | | The original image location.
|
watermarkImage | protected static Image watermarkImage(Code) | | Watermark image (screen-sized).
|
SubstanceImageWatermark | public SubstanceImageWatermark(ParamReader paramReader) throws AccessControlException(Code) | | Simple constructor. Uses
ParamReader.getWatermarkImageProperty to retrieve the location of the image. Note that this constructor can
throw AccessControlException if this class is used in unsecure JNLP
environment. However, in this case we must have access to local disk in
any case since we need to read the image.
Parameters: paramReader - Substance parameter reader instance. throws: AccessControlException - if this class is used in unsecure JNLP environment |
SubstanceImageWatermark | public SubstanceImageWatermark(String imageLocation)(Code) | | Creates an instance with specified image.
Parameters: imageLocation - Image location. Can point to a local file or HTTP URL (needsto start with http in the later case). |
SubstanceImageWatermark | public SubstanceImageWatermark(InputStream inputStream)(Code) | | Creates an instance from the specified input stream.
Parameters: inputStream - Input stream. |
dispose | public void dispose()(Code) | | |
drawWatermarkImage | public void drawWatermarkImage(Graphics graphics, Component c, int x, int y, int width, int height)(Code) | | |
getKind | public static ImageWatermarkKind getKind()(Code) | | Returns the image watermark kind.
Image watermark kind. |
getName | public static String getName()(Code) | | Returns the name of all watermarks of this class.
The name of all watermarks of this class. |
getOpacity | public static float getOpacity()(Code) | | Returns the image watermark opacity.
Image watermark opacity. |
getOrigImageLocation | public String getOrigImageLocation()(Code) | | Returns the location of the original image.
The location of the original image. |
isDependingOnTheme | public boolean isDependingOnTheme()(Code) | | |
previewWatermark | public void previewWatermark(Graphics g, int x, int y, int width, int height)(Code) | | |
setKind | public static void setKind(ImageWatermarkKind kind)(Code) | | Sets image watermark kind.
Parameters: kind - Image watermark kind. |
setOpacity | public static void setOpacity(float opacity)(Code) | | Sets image watermark opacity.
Parameters: opacity - Image watermark opacity. throws: IllegalArgumentException - if the argument is not in 0.0-1.0 range. |
updateWatermarkImage | public boolean updateWatermarkImage()(Code) | | |
|
|