RenderingWatermark
Inheritance: java.lang.Object
public class RenderingWatermark
Watermark for rendering.
Constructors
Constructor | Description |
---|---|
RenderingWatermark(String text, RenderingFont renderingFont) | Creates instance of text watermark. |
RenderingWatermark(byte[] imageData) | Creates instance of image watermark. |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getFont() | Gets font of the watermark. |
getHAlignment() | Gets horizontal alignment of the watermark to the page. |
getImage() | Gets image of the watermark. |
getOffsetX() | Gets offset value to getHAlignment() |
getOffsetY() | Gets offset value to getVAlignment() |
getOpacity() | Gets opacity of the watermark in range [0, 1]. |
getRotation() | Gets roation of the watermark in degrees. |
getScaleToPagePercent() | Gets scale relative to target page in percent. |
getText() | Gets text of the watermark. |
getVAlignment() | Gets vertical alignment of the watermark to the page. |
hashCode() | |
isBackground() | Indicates whether the watermark is placed behind page contents. |
notify() | |
notifyAll() | |
setBackground(boolean value) | Indicates whether the watermark is placed behind page contents. |
setHAlignment(int value) | Sets horizontal alignment of the watermark to the page. |
setOffsetX(float value) | Sets offset value to getHAlignment() |
setOffsetY(float value) | Sets offset value to getVAlignment() |
setOpacity(float value) | Sets opacity of the watermark in range [0, 1]. |
setRotation(float value) | Sets roation of the watermark in degrees. |
setScaleToPagePercent(int value) | Sets scale relative to target page in percent. |
setVAlignment(int value) | Sets vertical alignment of the watermark to the page. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
RenderingWatermark(String text, RenderingFont renderingFont)
public RenderingWatermark(String text, RenderingFont renderingFont)
Creates instance of text watermark.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | watermark text |
renderingFont | RenderingFont | watermark font |
RenderingWatermark(byte[] imageData)
public RenderingWatermark(byte[] imageData)
Creates instance of image watermark.
Parameters:
Parameter | Type | Description |
---|---|---|
imageData | byte[] |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getFont()
public RenderingFont getFont()
Gets font of the watermark.
Returns: RenderingFont
getHAlignment()
public int getHAlignment()
Gets horizontal alignment of the watermark to the page.
See TextAlignmentType.
Remarks
Only Left, Center, Right is valid. Default is Left.
Returns: int
getImage()
public byte[] getImage()
Gets image of the watermark.
Returns: byte[]
getOffsetX()
public float getOffsetX()
Gets offset value to getHAlignment()
Returns: float
getOffsetY()
public float getOffsetY()
Gets offset value to getVAlignment()
Returns: float
getOpacity()
public float getOpacity()
Gets opacity of the watermark in range [0, 1].
Returns: float
getRotation()
public float getRotation()
Gets roation of the watermark in degrees.
Returns: float
getScaleToPagePercent()
public int getScaleToPagePercent()
Gets scale relative to target page in percent.
Returns: int
getText()
public String getText()
Gets text of the watermark.
Returns: java.lang.String
getVAlignment()
public int getVAlignment()
Gets vertical alignment of the watermark to the page.
See TextAlignmentType.
Remarks
Only Top, Center, Bottom is valid. Default is Top.
Returns: int
hashCode()
public native int hashCode()
Returns: int
isBackground()
public boolean isBackground()
Indicates whether the watermark is placed behind page contents.
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBackground(boolean value)
public void setBackground(boolean value)
Indicates whether the watermark is placed behind page contents.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setHAlignment(int value)
public void setHAlignment(int value)
Sets horizontal alignment of the watermark to the page.
See TextAlignmentType.
Remarks
Only Left, Center, Right is valid. Default is Left.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setOffsetX(float value)
public void setOffsetX(float value)
Sets offset value to getHAlignment()
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
setOffsetY(float value)
public void setOffsetY(float value)
Sets offset value to getVAlignment()
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
setOpacity(float value)
public void setOpacity(float value)
Sets opacity of the watermark in range [0, 1].
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
setRotation(float value)
public void setRotation(float value)
Sets roation of the watermark in degrees.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
setScaleToPagePercent(int value)
public void setScaleToPagePercent(int value)
Sets scale relative to target page in percent.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setVAlignment(int value)
public void setVAlignment(int value)
Sets vertical alignment of the watermark to the page.
See TextAlignmentType.
Remarks
Only Top, Center, Bottom is valid. Default is Top.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |