Stamp

Inheritance: java.lang.Object

public abstract class Stamp

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

Constructors

Constructor Description
Stamp()

Methods

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

Stamp()

public Stamp()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getBottomMargin()

public double getBottomMargin()

Gets bottom margin of stamp.

Returns: double - double value

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getHeight()

public double getHeight()

Gets desired height of the stamp on the page.

Returns: double - double value

getHorizontalAlignment()

public int getHorizontalAlignment()

Gets horizontal alignment of stamp on the page.

Returns: int - HorizontalAlignment value

getLeftMargin()

public double getLeftMargin()

Gets left margin of stamp.

Returns: double - double 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

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

getOutlineWidth()

public double getOutlineWidth()

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

Returns: double - double value

getRightMargin()

public double getRightMargin()

Gets right margin of stamp.

Returns: double - double 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

getRotateAngle()

public double getRotateAngle()

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

Returns: double - double value

getStampId()

public int getStampId()

Gets stamp ID.

Returns: int - Identifier of the stamp.

getTopMargin()

public double getTopMargin()

Get top margin of stamp.

Returns: double - double value

getVerticalAlignment()

public int getVerticalAlignment()

Gets vertical alignment of stamp on page.

Returns: int - VerticalAlignment value

getWidth()

public double getWidth()

Gets desired width of the stamp on the page.

Returns: double - double value

getXIndent()

public double getXIndent()

Get horizontal stamp coordinate, starting from the left.

Returns: double - double value

getYIndent()

public double getYIndent()

Get vertical stamp coordinate, starting from the bottom.

Returns: double - double 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

getZoomX()

public double getZoomX()

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

Returns: double - double value

getZoomY()

public double getZoomY()

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

Returns: double - double value

hashCode()

public native int hashCode()

Returns: int

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

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

put(Page page)

public abstract void put(Page page)

Adds stamp on the page.

Parameters:

Parameter Type Description
page Page The page to add stamp.

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:

Parameter Type Description
value boolean boolean value

setBottomMargin(double value)

public void setBottomMargin(double value)

Sets bottom margin of stamp.

Parameters:

Parameter Type Description
value double double value

setHeight(double value)

public void setHeight(double value)

Sets desired height of the stamp on the page.

Parameters:

Parameter Type Description
value double double value

setHorizontalAlignment(int value)

public void setHorizontalAlignment(int value)

Sets Horizontal alignment of stamp on the page.

Parameters:

Parameter Type Description
value int HorizontalAlignment value

setLeftMargin(double value)

public void setLeftMargin(double value)

Sets left margin of stamp.

Parameters:

Parameter Type Description
value 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:

Parameter Type Description
value 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:

Parameter Type Description
value 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:

Parameter Type Description
value double double value

setRightMargin(double value)

public void setRightMargin(double value)

Sets right margin of stamp.

Parameters:

Parameter Type Description
value double double 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:

Parameter Type Description
value int int 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:

Parameter Type Description
value double rotate angle

setStampId(int value)

public void setStampId(int value)

Sets stamp Id.

Parameters:

Parameter Type Description
value int New value of Stamp ID.

setTopMargin(double value)

public void setTopMargin(double value)

Sets top margin of stamp.

Parameters:

Parameter Type Description
value double double value

setVerticalAlignment(int value)

public void setVerticalAlignment(int value)

Sets vertical alignment of stamp on page.

Parameters:

Parameter Type Description
value int VerticalAlignment value

setWidth(double value)

public void setWidth(double value)

Sets desired width of the stamp on the page.

Parameters:

Parameter Type Description
value double double value

setXIndent(double value)

public void setXIndent(double value)

Set horizontal stamp coordinate, starting from the left.

Parameters:

Parameter Type Description
value double double value

setYIndent(double value)

public void setYIndent(double value)

Set vertical stamp coordinate, starting from the bottom.

Parameters:

Parameter Type Description
value 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:

Parameter Type Description
value double double value

setZoomX(double value)

public void setZoomX(double value)

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

Parameters:

Parameter Type Description
value double double value

setZoomY(double value)

public void setZoomY(double value)

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

Parameters:

Parameter Type Description
value double double value

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