public abstract class Stamp extends Object
An abstract class for various kinds of stamps which come as descendants.
Constructor and Description |
---|
Stamp() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBackground()
Gets a bool value that indicates the content is stamped as background.
|
double |
getBottomMargin()
Gets bottom margin of stamp.
|
double |
getHeight()
Desired height of the stamp on the page.
|
int |
getHorizontalAlignment()
Gets horizontal alignment of stamp on the page.
|
double |
getLeftMargin()
Gets left margin of stamp.
|
double |
getOpacity()
Gets a value to indicate the stamp opacity.
|
double |
getRightMargin()
Gets right margin of stamp.
|
int |
getRotate()
Sets or gets the rotation of stamp content according
Rotation values. |
double |
getRotateAngle()
Gets rotate angle of stamp in degrees.
|
int |
getStampId()
Returns stamp ID.
|
double |
getTopMargin()
Get top margin of stamp.
|
int |
getVerticalAlignment()
Gets vertical alignment of stamp on page.
|
double |
getWidth()
Desired width of the stamp on the page.
|
double |
getXIndent()
Get horizontal stamp coordinate, starting from the left.
|
double |
getYIndent()
Get vertical stamp coordinate, starting from the bottom.
|
double |
getZoom()
Zooming factor of the stamp.
|
double |
getZoomX()
Horizontal zooming factor of the stamp.
|
double |
getZoomY()
Vertical zooming factor of the stamp.
|
abstract void |
put(Page page)
Adds stamp on the page.
|
void |
setBackground(boolean value)
Sets a bool value that indicates the content is stamped as background.
|
void |
setBottomMargin(double value)
Sets bottom margin of stamp.
|
void |
setHeight(double value) |
void |
setHorizontalAlignment(int value)
Sets Horizontal alignment of stamp on the page.
|
void |
setLeftMargin(double value)
Sets left margin of stamp.
|
void |
setOpacity(double value)
Sets a value to indicate the stamp opacity.
|
void |
setRightMargin(double value)
Sets right margin of stamp.
|
void |
setRotate(int value) |
void |
setRotateAngle(double value)
Sets rotate angle of stamp in degrees.
|
void |
setStampId(int value)
Sets stamp Id.
|
void |
setTopMargin(double value)
Sets top margin of stamp.
|
void |
setVerticalAlignment(int value)
Sets vertical alignment of stamp on page.
|
void |
setWidth(double value) |
void |
setXIndent(double value)
Set horizontal stamp coordinate, starting from the left.
|
void |
setYIndent(double value)
Set vertical stamp coordinate, starting from the bottom.
|
void |
setZoom(double value) |
void |
setZoomX(double value)
Horizontal zooming factor of the stamp.
|
void |
setZoomY(double value) |
public boolean getBackground()
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.
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 defalt, the value is false, the stamp content is layed at the top.
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.
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.
public int getRotate()
Sets or 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.
public void setRotate(int value)
public double getXIndent()
Get horizontal stamp coordinate, starting from the left.
public void setXIndent(double value)
Set horizontal stamp coordinate, starting from the left.
public double getYIndent()
Get vertical stamp coordinate, starting from the bottom.
public void setYIndent(double value)
Set vertical stamp coordinate, starting from the bottom.
public int getHorizontalAlignment()
Gets horizontal alignment of stamp on the page.
public void setHorizontalAlignment(int value)
Sets Horizontal alignment of stamp on the page.
public int getVerticalAlignment()
Gets vertical alignment of stamp on page.
public void setVerticalAlignment(int value)
Sets vertical alignment of stamp on page.
public double getLeftMargin()
Gets left margin of stamp.
public void setLeftMargin(double value)
Sets left margin of stamp.
public double getRightMargin()
Gets right margin of stamp.
public void setRightMargin(double value)
Sets right margin of stamp.
public double getBottomMargin()
Gets bottom margin of stamp.
public void setBottomMargin(double value)
Sets bottom margin of stamp.
public double getTopMargin()
Get top margin of stamp.
public void setTopMargin(double value)
Sets top margin of stamp.
public double getZoomX()
Horizontal zooming factor of the stamp. Allows to scale stamp horizontally.
public void setZoomX(double value)
Horizontal zooming factor of the stamp. Allows to scale stamp horizontally.
public double getWidth()
Desired width of the stamp on the page.
public void setWidth(double value)
public double getHeight()
Desired height of the stamp on the page.
public void setHeight(double value)
public double getZoomY()
Vertical zooming factor of the stamp. Allows to scale stamp vertically.
public void setZoomY(double value)
public double getZoom()
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.
public void setZoom(double value)
public double getRotateAngle()
Gets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
public void setRotateAngle(double value)
Sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.
public abstract void put(Page page)
Adds stamp on the page.
page
- The page to add stamp.public void setStampId(int value)
Sets stamp Id.
value
- New value of Stamp ID.public int getStampId()
Returns stamp ID.
Copyright © 2018 Aspose. All Rights Reserved.