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 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_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.
|
String |
getIconName()
If this stamp was created using a default predefined stamp, returns the stamp's predefined name.
|
Image |
getImage()
If this stamp was created from an image, then it returns the image that it was created from.
|
int |
getRotation()
Gets the rotation.
|
void |
setContents(String contents)
Sets the annotation's text content.
|
void |
setIconName(String iconName)
Sets the name of the predefined stamp from the PDF format specs.
|
void |
setImage(Image image) |
void |
setRotation(int rotation)
Sets the rotation for standard or image stamps that do not have an appearance stream yet.
|
void |
setRunInfo(Hashtable runInfo)
Sets information used for stamps that have dynamic fields, such as the current date and time.
|
getActions, getBorderStyle, getBorderWidth, getCheckmarkStatus, getColor, getComponent, getCreator, getFlags, getModifiedDate, getName, getOpacity, getRectangle, getReviewHistory, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setSubtype, 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
void setRunInfo(Hashtable runInfo)
runInfo
- Image createImage(double scale, int maxWidth, int maxHeight)
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.Image getImage()
void setImage(Image image)
int getRotation()
void setRotation(int rotation)