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, getPopupPaint
getInfo, getLocked, getReplies
copy, getBoundingBox, getHidden, getNoPrint, getNoRotate, getNoZoom
equals, hashCode
public 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 null
java.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_TEXT
java.lang.IllegalArgumentException
- if the text
argument is null
or emptyjava.lang.IllegalArgumentException
- if topLeft
is null
java.lang.IllegalArgumentException
- if textType
is null
public TextStampType getTextType()
java.lang.IllegalStateException
- if the object has already been closed