|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.RubberStamp
Class representing a Rubber Stamp annotation in a PDF document.
| Fields inherited from class com.qoppa.pdf.annotations.Annotation |
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY |
| Constructor Summary | |
RubberStamp()
Constructs a rubber stamp annotation |
|
RubberStamp(Image image)
Constructs a rubber stamp annotation |
|
RubberStamp(String stampType)
Constructs a rubber stamp annotation as defined in the PDF format. |
|
RubberStamp(String text,
Color color)
Construct a rubber stamp annotation with custom text and custom color. |
|
| Method Summary | |
JComponent |
createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation. |
Image |
createImage(double scale,
int maxWidth,
int maxHeight)
Return an image for the current stamp. |
String |
getContents()
Returns the annotation's contents. |
String |
getIconName()
|
Image |
getImage()
|
int |
getRotation()
Gets the rotation. |
Hashtable |
getRunInfo()
|
String |
getSubtype()
Returns this annotation's subtype: "Stamp" |
void |
paintImpl(Graphics graphics,
boolean hasFocus)
Draws the stamp. |
void |
revalidate()
Revalidates this annotation. |
void |
setContents(String contents)
|
void |
setIconName(String iconName)
|
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)
|
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getBorderWidth, getColor, getComponent, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, setActions, setAppearStream, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setRectangle, setTriggerActions, shiftRectangle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ASIS
public static final String APPROVED
public static final String CONFIDENTIAL
public static final String DEPARTMENTAL
public static final String DRAFT
public static final String EXPERIMENTAL
public static final String EXPIRED
public static final String FINAL
public static final String FORCOMMENT
public static final String FORPUBLICRELEASE
public static final String NOTAPPROVED
public static final String NOTFORPUBLICRELEASE
public static final String SOLD
public static final String TOPSECRET
public static final String ASIS_TEXT
public static final String APPROVED_TEXT
public static final String CONFIDENTIAL_TEXT
public static final String DEPARTMENTAL_TEXT
public static final String DRAFT_TEXT
public static final String EXPERIMENTAL_TEXT
public static final String EXPIRED_TEXT
public static final String FINAL_TEXT
public static final String FORCOMMENT_TEXT
public static final String FORPUBLICRELEASE_TEXT
public static final String NOTAPPROVED_TEXT
public static final String NOTFORPUBLICRELEASE_TEXT
public static final String SOLD_TEXT
public static final String TOPSECRET_TEXT
public static final String SBASIS
public static final String SBAPPROVED
public static final String SBCONFIDENTIAL
public static final String SBDEPARTMENTAL
public static final String SBDRAFT
public static final String SBEXPERIMENTAL
public static final String SBEXPIRED
public static final String SBFINAL
public static final String SBFORCOMMENT
public static final String SBFORPUBLICRELEASE
public static final String SBNOTAPPROVED
public static final String SBNOTFORPUBLICRELEASE
public static final String SBSOLD
public static final String SBTOPSECRET
| Constructor Detail |
public RubberStamp()
public RubberStamp(String stampType)
public RubberStamp(String text,
Color color)
public RubberStamp(Image image)
| Method Detail |
public Hashtable getRunInfo()
public void setRunInfo(Hashtable runInfo)
public String getSubtype()
getSubtype in class Annotation
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
createComponent in class Annotation
public 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.
public void paintImpl(Graphics graphics,
boolean hasFocus)
graphics - The graphics object to use when drawing.hasFocus - Flag indicating whether the annotation should be painted with or without focus.public void revalidate()
Annotation
revalidate in class Annotationpublic String getIconName()
public String getContents()
Annotation
getContents in class Annotationpublic void setContents(String contents)
public void setIconName(String iconName)
public Image getImage()
public void setImage(Image image)
public int getRotation()
public void setRotation(int rotation)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||