public class PDAnnotationText extends PDAnnotationMarkup
| Modifier and Type | Field and Description | 
|---|---|
| static String | NAME_COMMENTConstant for the name of a text annotation. | 
| static String | NAME_HELPConstant for the name of a text annotation. | 
| static String | NAME_INSERTConstant for the name of a text annotation. | 
| static String | NAME_KEYConstant for the name of a text annotation. | 
| static String | NAME_NEW_PARAGRAPHConstant for the name of a text annotation. | 
| static String | NAME_NOTEConstant for the name of a text annotation. | 
| static String | NAME_PARAGRAPHConstant for the name of a text annotation. | 
| static String | SUB_TYPEThe type of annotation. | 
RT_GROUP, RT_REPLY, SUB_TYPE_CARET, SUB_TYPE_FREETEXT, SUB_TYPE_INK, SUB_TYPE_POLYGON, SUB_TYPE_POLYLINE, SUB_TYPE_SOUND| Constructor and Description | 
|---|
| PDAnnotationText()Constructor. | 
| PDAnnotationText(COSDictionary field)Creates a Text annotation from a COSDictionary, expected to be a correct object definition. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getName()This will retrieve the name (and hence appearance, AP taking precedence) For this annotation. | 
| boolean | getOpen()This will retrieve the initial state of the annotation, open Or closed (default closed). | 
| String | getState()This will retrieve the annotation state. | 
| String | getStateModel()This will retrieve the annotation state model. | 
| void | setName(String name)This will set the name (and hence appearance, AP taking precedence) For this annotation. | 
| void | setOpen(boolean open)This will set initial state of the annotation, open or closed. | 
| void | setState(String state)This will set the annotation state. | 
| void | setStateModel(String stateModel)This will set the annotation state model. | 
getBorderStyle, getConstantOpacity, getCreationDate, getExternalData, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setBorderStyle, setConstantOpacity, setCreationDate, setExternalData, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopupcreateAnnotation, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getCOSObject, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, getSubtype, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceState, setBorder, setColor, setContents, setHidden, setInvisible, setLocked, setModifiedDate, setModifiedDate, setNoRotate, setNoView, setNoZoom, setOptionalContent, setPage, setPrinted, setReadOnly, setRectangle, setStructParent, setToggleNoViewpublic static final String NAME_COMMENT
public static final String NAME_KEY
public static final String NAME_NOTE
public static final String NAME_HELP
public static final String NAME_NEW_PARAGRAPH
public static final String NAME_PARAGRAPH
public static final String NAME_INSERT
public static final String SUB_TYPE
public PDAnnotationText()
public PDAnnotationText(COSDictionary field)
field - the PDF object to represent as a field.public void setOpen(boolean open)
open - Boolean value, true = open false = closedpublic boolean getOpen()
public void setName(String name)
name - The name of the annotationpublic String getName()
public String getState()
public void setState(String state)
state - the annotation statepublic String getStateModel()
public void setStateModel(String stateModel)
stateModel - the annotation state modelCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.