public interface RubberStamp extends Annotation
Modifier and Type | Field and Description |
---|---|
static String |
APPROVED |
static String |
ASIS |
static String |
COMPLETED |
static String |
CONFIDENTIAL |
static String |
DEPARTMENTAL |
static String |
DRAFT |
static String |
EXPERIMENTAL |
static String |
EXPIRED |
static String |
FINAL |
static String |
FORCOMMENT |
static String |
FORPUBLICRELEASE |
static String |
INFORMATIONONLY |
static int |
JUSTIFY_CENTER
Justification of stamp text - center
|
static int |
JUSTIFY_LEFT
Justification of stamp text - left
|
static int |
JUSTIFY_RIGHT
Justification of stamp text - right
|
static String |
NOTAPPROVED |
static String |
NOTFORPUBLICRELEASE |
static String |
PRELIMINARYRESULTS |
static String |
SOLD |
static String |
TOPSECRET |
static String |
VOID |
BORDERSTYLE_BEVELED, BORDERSTYLE_CLOUD, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_LOCKEDCONTENTS, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY
Modifier and Type | Method and Description |
---|---|
Image |
createImage(double scale,
int maxWidth,
int maxHeight)
Return an image for the current stamp.
|
String |
getContents()
Returns the annotation's text content.
|
Date |
getCreationDate()
Returns the date and time when the annotation was created.
|
float |
getFontSize()
Gets the font size of the text of the stamp.
|
String |
getIconName()
If this stamp was created using a default predefined stamp, returns the stamp's predefined name.
|
int |
getJustification()
Returns the text justification property for this stamp.
|
int |
getRotation()
Gets the rotation.
|
int |
getTextStyle()
Gets the style of the text of this stamp, i.e.
|
boolean |
isDropShadow()
Returns true if the stamp is set to have a shadow behind the text.
|
boolean |
isShowBorder()
Returns true if the stamp is set to have a border around the text.
|
void |
setContents(String contents)
Sets the annotation's text content.
|
void |
setDropShadow(boolean dropShadow)
Set whether a text stamp should have a shadow behind the text.
|
void |
setFontSize(float textSize)
Sets the font size of the text of the stamp
* @param textSize size for the text of the stamp
|
void |
setIconName(String iconName)
Sets the name of the predefined stamp from the PDF format specs.
|
void |
setJustification(int justify)
Sets the text justification for this stamp.
|
void |
setRotation(int rotation)
Sets the rotation of the stamp on the page in degrees such as 45, 90, etc...
|
void |
setRunInfo(Hashtable<String,Object> runInfo)
Sets information used for stamps that have dynamic fields, such as the current date and time.
|
void |
setShowBorder(boolean showBorder)
Set whether a text stamp should have a border around the text.
|
void |
setTextStyle(int textStyle)
Sets the text style of the stamp.
|
getActions, getAnnotationComponent, getBorderStyle, getBorderWidth, getCheckmarkStatus, getColor, getComponent, getCreator, getFlags, getIRTAnnotation, getModifiedDate, getName, getOpacity, getPageIndex, getRectangle, getReviewHistory, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isIRTGroup, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setLockedContents, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setTriggerActions, shiftRectangle
static final String ASIS
static final String APPROVED
static final String CONFIDENTIAL
static final String DEPARTMENTAL
static final String DRAFT
static final String EXPERIMENTAL
static final String EXPIRED
static final String FINAL
static final String FORCOMMENT
static final String FORPUBLICRELEASE
static final String NOTAPPROVED
static final String NOTFORPUBLICRELEASE
static final String SOLD
static final String TOPSECRET
static final String INFORMATIONONLY
static final String PRELIMINARYRESULTS
static final String VOID
static final String COMPLETED
static final int JUSTIFY_LEFT
static final int JUSTIFY_CENTER
static final int JUSTIFY_RIGHT
void setRunInfo(Hashtable<String,Object> runInfo)
runInfo
- Image createImage(double scale, int maxWidth, int maxHeight)
scale
- The desired scale for the image.maxWidth
- Maximum width desired for the image. If the natural image is larger than this, the image will be rescaled.maxHeight
- Maximum height desired for the image. If the natural image is larger than this, the image will be rescaled.String getIconName()
String getContents()
getContents
in interface Annotation
void setContents(String contents)
contents
- The new content.void setIconName(String iconName)
iconName
- The predefined name.int getRotation()
void setRotation(int rotation)
Date getCreationDate()
int getJustification()
JUSTIFY_LEFT
, JUSTIFY_CENTER
, and JUSTIFY_RIGHT
void setJustification(int justify)
JUSTIFY_LEFT
, JUSTIFY_CENTER
, and JUSTIFY_RIGHT
justify
- The new value for the text justificationboolean isDropShadow()
void setDropShadow(boolean dropShadow)
dropShadow
- whether or not to have a shadow behind textboolean isShowBorder()
void setShowBorder(boolean showBorder)
showBorder
- whether or not to have a border around textint getTextStyle()
void setTextStyle(int textStyle)
textStyle
- the style of the textfloat getFontSize()
void setFontSize(float textSize)