public class TextStamp extends Stamp
| Modifier and Type | Method and Description |
|---|---|
static TextStamp |
createDynamicObject(long handle) |
static TextStamp |
createRaw(Document targetDocument,
Point topLeft,
java.lang.Double height,
TextStampType textType,
java.lang.String text)
Create a text stamp annotation.
|
TextStampType |
getTextType()
The displayed text (Getter)
|
getPopup, getPopupPaintgetInfo, getLocked, getRepliescopy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoomequals, hashCodepublic static TextStamp createDynamicObject(long handle)
public static TextStamp createRaw(Document targetDocument, Point topLeft, java.lang.Double height, TextStampType textType, java.lang.String text)
targetDocument - The output document with which the returned object is associated.topLeft - The location of the annotation's upper left corner on the page.height - The height of the annotation.textType - The text stamp type.text - The text to be shown in this stamp.java.lang.IllegalArgumentException - if the targetDocument is nulljava.lang.IllegalArgumentException - if the targetDocument has already been closedjava.lang.IllegalArgumentException - if the targetDocument is read-onlyjava.lang.IllegalArgumentException - if the textType argument is TextStampType.CUSTOM_STAMP_TEXTjava.lang.IllegalArgumentException - if the text argument is null or emptyjava.lang.IllegalArgumentException - if topLeft is nulljava.lang.IllegalArgumentException - if textType is nullpublic TextStampType getTextType()
java.lang.IllegalStateException - if the object has already been closed