RenderingWatermark

Inheritance: java.lang.Object

public class RenderingWatermark

Watermark for rendering.

Constructors

ConstructorDescription
RenderingWatermark(String text, RenderingFont renderingFont)Creates instance of text watermark.
RenderingWatermark(byte[] imageData)Creates instance of image watermark.

Methods

MethodDescription
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:

ParameterTypeDescription
textjava.lang.Stringwatermark text
renderingFontRenderingFontwatermark font

RenderingWatermark(byte[] imageData)

public RenderingWatermark(byte[] imageData)

Creates instance of image watermark.

Parameters:

ParameterTypeDescription
imageDatabyte[]

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
valueboolean

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:

ParameterTypeDescription
valueint

setOffsetX(float value)

public void setOffsetX(float value)

Sets offset value to getHAlignment()

Parameters:

ParameterTypeDescription
valuefloat

setOffsetY(float value)

public void setOffsetY(float value)

Sets offset value to getVAlignment()

Parameters:

ParameterTypeDescription
valuefloat

setOpacity(float value)

public void setOpacity(float value)

Sets opacity of the watermark in range [0, 1].

Parameters:

ParameterTypeDescription
valuefloat

setRotation(float value)

public void setRotation(float value)

Sets roation of the watermark in degrees.

Parameters:

ParameterTypeDescription
valuefloat

setScaleToPagePercent(int value)

public void setScaleToPagePercent(int value)

Sets scale relative to target page in percent.

Parameters:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int