Stamp

Inheritance: java.lang.Object

public abstract class Stamp

An abstract class for various kinds of stamps which come as descendants.

Constructors

ConstructorDescription
Stamp()

Methods

MethodDescription
isBackground()Gets a bool value that indicates the content is stamped as background.
setBackground(boolean value)Sets a bool value that indicates the content is stamped as background.
getOpacity()Gets a value to indicate the stamp opacity.
setOpacity(double value)Sets a value to indicate the stamp opacity.
getOutlineOpacity()Gets a value to indicate the stamp outline opacity.
setOutlineOpacity(double value)Sets a value to indicate the stamp outline opacity.
getOutlineWidth()Gets a value of the stamp outline width.
setOutlineWidth(double value)Sets a value of the stamp outline width.
getRotate()Gets the rotation of stamp content according Rotation values.
setRotate(int value)Sets the rotation of stamp content according Rotation values.
getXIndent()Get horizontal stamp coordinate, starting from the left.
setXIndent(double value)Set horizontal stamp coordinate, starting from the left.
getYIndent()Get vertical stamp coordinate, starting from the bottom.
setYIndent(double value)Set vertical stamp coordinate, starting from the bottom.
getHorizontalAlignment()Gets horizontal alignment of stamp on the page.
setHorizontalAlignment(HorizontalAlignment value)Sets Horizontal alignment of stamp on the page.
getVerticalAlignment()Gets vertical alignment of stamp on page.
setVerticalAlignment(VerticalAlignment value)Sets vertical alignment of stamp on page.
getLeftMargin()Gets left margin of stamp.
setLeftMargin(double value)Sets left margin of stamp.
getRightMargin()Gets right margin of stamp.
setRightMargin(double value)Sets right margin of stamp.
getBottomMargin()Gets bottom margin of stamp.
setBottomMargin(double value)Sets bottom margin of stamp.
getTopMargin()Get top margin of stamp.
setTopMargin(double value)Sets top margin of stamp.
getZoomX()Gets horizontal zooming factor of the stamp.
setZoomX(double value)Sets horizontal zooming factor of the stamp.
getWidth()Gets desired width of the stamp on the page.
setWidth(double value)Sets desired width of the stamp on the page.
getHeight()Gets desired height of the stamp on the page.
setHeight(double value)Sets desired height of the stamp on the page.
getZoomY()Gets vertical zooming factor of the stamp.
setZoomY(double value)Sets vertical zooming factor of the stamp.
getZoom()Gets zooming factor of the stamp.
setZoom(double value)Gets zooming factor of the stamp.
getRotateAngle()Gets rotate angle of stamp in degrees.
setRotateAngle(double value)Sets rotate angle of stamp in degrees.
put(Page page)Adds stamp on the page.
setStampId(int value)Sets stamp Id.
getStampId()Gets stamp ID.

Stamp()

public Stamp()

isBackground()

public boolean isBackground()

Gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.

Returns: boolean - boolean value

setBackground(boolean value)

public void setBackground(boolean value)

Sets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By default, the value is false, the stamp content is layed at the top.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getOpacity()

public double getOpacity()

Gets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Returns: double - double value

setOpacity(double value)

public void setOpacity(double value)

Sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getOutlineOpacity()

public double getOutlineOpacity()

Gets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Returns: double - double value

setOutlineOpacity(double value)

public void setOutlineOpacity(double value)

Sets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getOutlineWidth()

public double getOutlineWidth()

Gets a value of the stamp outline width. By default the value is 1.0.

Returns: double - double value

setOutlineWidth(double value)

public void setOutlineWidth(double value)

Sets a value of the stamp outline width. By default the value is 1.0.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getRotate()

public int getRotate()

Gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.

Returns: int - Rotation value

setRotate(int value)

public void setRotate(int value)

Sets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.

Parameters:

ParameterTypeDescription
valueintint value

getXIndent()

public double getXIndent()

Get horizontal stamp coordinate, starting from the left.

Returns: double - double value

setXIndent(double value)

public void setXIndent(double value)

Set horizontal stamp coordinate, starting from the left.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getYIndent()

public double getYIndent()

Get vertical stamp coordinate, starting from the bottom.

Returns: double - double value

setYIndent(double value)

public void setYIndent(double value)

Set vertical stamp coordinate, starting from the bottom.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getHorizontalAlignment()

public HorizontalAlignment getHorizontalAlignment()

Gets horizontal alignment of stamp on the page.

Returns: HorizontalAlignment - HorizontalAlignment value

setHorizontalAlignment(HorizontalAlignment value)

public void setHorizontalAlignment(HorizontalAlignment value)

Sets Horizontal alignment of stamp on the page.

Parameters:

ParameterTypeDescription
valueHorizontalAlignmentHorizontalAlignment value

getVerticalAlignment()

public VerticalAlignment getVerticalAlignment()

Gets vertical alignment of stamp on page.

Returns: VerticalAlignment - VerticalAlignment value

setVerticalAlignment(VerticalAlignment value)

public void setVerticalAlignment(VerticalAlignment value)

Sets vertical alignment of stamp on page.

Parameters:

ParameterTypeDescription
valueVerticalAlignmentVerticalAlignment value

getLeftMargin()

public double getLeftMargin()

Gets left margin of stamp.

Returns: double - double value

setLeftMargin(double value)

public void setLeftMargin(double value)

Sets left margin of stamp.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getRightMargin()

public double getRightMargin()

Gets right margin of stamp.

Returns: double - double value

setRightMargin(double value)

public void setRightMargin(double value)

Sets right margin of stamp.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getBottomMargin()

public double getBottomMargin()

Gets bottom margin of stamp.

Returns: double - double value

setBottomMargin(double value)

public void setBottomMargin(double value)

Sets bottom margin of stamp.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getTopMargin()

public double getTopMargin()

Get top margin of stamp.

Returns: double - double value

setTopMargin(double value)

public void setTopMargin(double value)

Sets top margin of stamp.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getZoomX()

public double getZoomX()

Gets horizontal zooming factor of the stamp. Allows to scale stamp horizontally.

Returns: double - double value

setZoomX(double value)

public void setZoomX(double value)

Sets horizontal zooming factor of the stamp. Allows to scale stamp horizontally.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getWidth()

public double getWidth()

Gets desired width of the stamp on the page.

Returns: double - double value

setWidth(double value)

public void setWidth(double value)

Sets desired width of the stamp on the page.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getHeight()

public double getHeight()

Gets desired height of the stamp on the page.

Returns: double - double value

setHeight(double value)

public void setHeight(double value)

Sets desired height of the stamp on the page.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getZoomY()

public double getZoomY()

Gets vertical zooming factor of the stamp. Allows to scale stamp vertically.

Returns: double - double value

setZoomY(double value)

public void setZoomY(double value)

Sets vertical zooming factor of the stamp. Allows to scale stamp vertically.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getZoom()

public double getZoom()

Gets zooming factor of the stamp. Allows to scale stamp. Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately. Setting of this property changes both ZoomX and ZoomY properties. If ZoomX and ZoomY are different then Zoom property returns ZoomX value.

Returns: double - double value

setZoom(double value)

public void setZoom(double value)

Gets zooming factor of the stamp. Allows to scale stamp. Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately. Setting of this property changes both ZoomX and ZoomY properties. If ZoomX and ZoomY are different then Zoom property returns ZoomX value.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getRotateAngle()

public double getRotateAngle()

Gets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.

Returns: double - double value

setRotateAngle(double value)

public void setRotateAngle(double value)

Sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.

Parameters:

ParameterTypeDescription
valuedoublerotate angle

put(Page page)

public abstract void put(Page page)

Adds stamp on the page.

Parameters:

ParameterTypeDescription
pagePageThe page to add stamp.

setStampId(int value)

public void setStampId(int value)

Sets stamp Id.

Parameters:

ParameterTypeDescription
valueintNew value of Stamp ID.

getStampId()

public int getStampId()

Gets stamp ID.

Returns: int - Identifier of the stamp.