public class PDAnnotationMarkup extends PDAnnotation
Modifier and Type | Field and Description |
---|---|
static String |
RT_GROUP
Constant for an annotation reply type.
|
static String |
RT_REPLY
Constant for an annotation reply type.
|
static String |
SUB_TYPE_CARET
Constant for an Caret type of annotation.
|
static String |
SUB_TYPE_FREETEXT
Constant for a FreeText type of annotation.
|
static String |
SUB_TYPE_INK
Constant for an Ink type of annotation.
|
static String |
SUB_TYPE_POLYGON
Constant for an Polygon type of annotation.
|
static String |
SUB_TYPE_POLYLINE
Constant for an PolyLine type of annotation.
|
static String |
SUB_TYPE_SOUND
Constant for an Sound type of annotation.
|
Constructor and Description |
---|
PDAnnotationMarkup()
Constructor.
|
PDAnnotationMarkup(COSDictionary dict)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PDBorderStyleDictionary |
getBorderStyle()
This will retrieve the border style dictionary, specifying the width and dash pattern used in drawing the line.
|
float |
getConstantOpacity()
This will retrieve the constant opacity value used when rendering the annotation (excluing any popup).
|
Calendar |
getCreationDate()
This will retrieve the date and time the annotation was created.
|
PDExternalDataDictionary |
getExternalData()
This will return the external data dictionary.
|
PDAnnotation |
getInReplyTo()
This will retrieve the annotation to which this one is "In Reply To" the actual relationship
is specified by the RT entry.
|
String |
getIntent()
This will retrieve the intent of the annotation The values and meanings are specific to the actual annotation See
the IT_* constants for the annotation classes.
|
PDAnnotationPopup |
getPopup()
This will retrieve the popup annotation used for entering/editing the text for this annotation.
|
String |
getReplyType()
This will retrieve the Reply Type (relationship) with the annotation in the IRT entry See the RT_* constants for
the available values.
|
String |
getRichContents()
This will retrieve the rich text stream which is displayed in the popup window.
|
String |
getSubject()
This will retrieve the short description of the subject of the annotation.
|
String |
getTitlePopup()
Retrieve the string used as the title of the popup window shown when open and active (by convention this
identifies who added the annotation).
|
void |
setBorderStyle(PDBorderStyleDictionary bs)
This will set the border style dictionary, specifying the width and dash pattern used in drawing the line.
|
void |
setConstantOpacity(float ca)
This will set the constant opacity value used when rendering the annotation (excluing any popup).
|
void |
setCreationDate(Calendar creationDate)
This will set the date and time the annotation was created.
|
void |
setExternalData(PDExternalDataDictionary externalData)
This will set the external data dictionary.
|
void |
setInReplyTo(PDAnnotation irt)
This will set the annotation to which this one is "In Reply To" the actual relationship is specified by the RT
entry.
|
void |
setIntent(String it)
This will set the intent of the annotation The values and meanings are specific to the actual annotation See the
IT_* constants for the annotation classes.
|
void |
setPopup(PDAnnotationPopup popup)
This will set the popup annotation used for entering/editing the text for this annotation.
|
void |
setReplyType(String rt)
This will set the Reply Type (relationship) with the annotation in the IRT entry See the RT_* constants for the
available values.
|
void |
setRichContents(String rc)
This will set the rich text stream which is displayed in the popup window.
|
void |
setSubject(String subj)
This will set the short description of the subject of the annotation.
|
void |
setTitlePopup(String t)
Set the string used as the title of the popup window shown when open and active (by convention this identifies
who added the annotation).
|
createAnnotation, 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, setToggleNoView
public static final String SUB_TYPE_FREETEXT
public static final String SUB_TYPE_POLYGON
public static final String SUB_TYPE_POLYLINE
public static final String SUB_TYPE_CARET
public static final String SUB_TYPE_INK
public static final String SUB_TYPE_SOUND
public static final String RT_REPLY
public static final String RT_GROUP
public PDAnnotationMarkup()
public PDAnnotationMarkup(COSDictionary dict)
dict
- The annotations dictionary.public String getTitlePopup()
public void setTitlePopup(String t)
t
- The title of the popup.public PDAnnotationPopup getPopup()
public void setPopup(PDAnnotationPopup popup)
popup
- the popup annotation.public float getConstantOpacity()
public void setConstantOpacity(float ca)
ca
- the constant opacity value.public String getRichContents()
public void setRichContents(String rc)
rc
- the rich text stream.public Calendar getCreationDate() throws IOException
IOException
- if there is a format problem when converting the date.public void setCreationDate(Calendar creationDate)
creationDate
- the date and time the annotation was created.public PDAnnotation getInReplyTo() throws IOException
IOException
- if there is an error creating the other annotation.public void setInReplyTo(PDAnnotation irt)
irt
- the annotation this one is "In Reply To".public String getSubject()
public void setSubject(String subj)
subj
- short description of the subject.public String getReplyType()
public void setReplyType(String rt)
rt
- the reply type.public String getIntent()
public void setIntent(String it)
it
- the intentpublic PDExternalDataDictionary getExternalData()
public void setExternalData(PDExternalDataDictionary externalData)
externalData
- the external data dictionarypublic void setBorderStyle(PDBorderStyleDictionary bs)
bs
- the border style dictionary to set.public PDBorderStyleDictionary getBorderStyle()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.