public class PDAnnotationTextMarkup extends PDAnnotationMarkup
Modifier and Type | Field and Description |
---|---|
private PDAppearanceHandler |
customAppearanceHandler |
static java.lang.String |
SUB_TYPE_HIGHLIGHT
The types of annotation.
|
static java.lang.String |
SUB_TYPE_SQUIGGLY
The types of annotation.
|
static java.lang.String |
SUB_TYPE_STRIKEOUT
The types of annotation.
|
static java.lang.String |
SUB_TYPE_UNDERLINE
The types of annotation.
|
IT_FREE_TEXT, IT_FREE_TEXT_CALLOUT, IT_FREE_TEXT_TYPE_WRITER, RT_GROUP, RT_REPLY, SUB_TYPE_CARET, SUB_TYPE_FREETEXT, SUB_TYPE_INK, SUB_TYPE_POLYGON, SUB_TYPE_POLYLINE, SUB_TYPE_SOUND
Modifier | Constructor and Description |
---|---|
private |
PDAnnotationTextMarkup() |
|
PDAnnotationTextMarkup(COSDictionary field)
Creates a TextMarkup annotation from a COSDictionary, expected to be a correct object definition.
|
|
PDAnnotationTextMarkup(java.lang.String subType)
Creates a TextMarkup annotation of the specified sub type.
|
Modifier and Type | Method and Description |
---|---|
void |
constructAppearances()
Create the appearance entry for this annotation.
|
void |
constructAppearances(PDDocument document)
Create the appearance entry for this annotation.
|
float[] |
getQuadPoints()
This will retrieve the set of quadpoints which encompass the areas of this annotation.
|
java.lang.String |
getSubtype()
This will retrieve the sub type (and hence appearance, AP taking precedence) For this annotation.
|
void |
setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
Set a custom appearance handler for generating the annotations appearance streams.
|
void |
setQuadPoints(float[] quadPoints)
This will set the set of quadpoints which encompass the areas of this annotation.
|
void |
setSubtype(java.lang.String subType)
This will set the sub type (and hence appearance, AP taking precedence) For this annotation.
|
getBorderEffect, getBorderStyle, getCallout, getConstantOpacity, getCreationDate, getDefaultAppearance, getDefaultStyleString, getEndPointEndingStyle, getExternalData, getInkList, getInReplyTo, getIntent, getInteriorColor, getLineEndingStyle, getPath, getPopup, getQ, getRectDifference, getRectDifferences, getReplyType, getRichContents, getStartPointEndingStyle, getSubject, getTitlePopup, getVertices, setBorderEffect, setBorderStyle, setCallout, setConstantOpacity, setCreationDate, setDefaultAppearance, setDefaultStyleString, setEndPointEndingStyle, setExternalData, setInkList, setInReplyTo, setIntent, setInteriorColor, setLineEndingStyle, setPopup, setQ, setRectDifference, setRectDifferences, setRectDifferences, setReplyType, setRichContents, setStartPointEndingStyle, setSubject, setTitlePopup, setVertices
createAnnotation, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getCOSObject, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, isHidden, isInvisible, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setAnnotationFlags, setAnnotationName, setAppearance, setAppearanceState, setBorder, setColor, setContents, setHidden, setInvisible, setLocked, setLockedContents, setModifiedDate, setModifiedDate, setNoRotate, setNoView, setNoZoom, setOptionalContent, setPage, setPrinted, setReadOnly, setRectangle, setStructParent, setToggleNoView
private PDAppearanceHandler customAppearanceHandler
public static final java.lang.String SUB_TYPE_HIGHLIGHT
public static final java.lang.String SUB_TYPE_UNDERLINE
public static final java.lang.String SUB_TYPE_SQUIGGLY
public static final java.lang.String SUB_TYPE_STRIKEOUT
private PDAnnotationTextMarkup()
public PDAnnotationTextMarkup(java.lang.String subType)
subType
- the subtype the annotation representspublic PDAnnotationTextMarkup(COSDictionary field)
field
- the PDF object to represent as a field.public void setQuadPoints(float[] quadPoints)
quadPoints
- an array representing the set of area coveredpublic float[] getQuadPoints()
public void setSubtype(java.lang.String subType)
subType
- The subtype of the annotationpublic java.lang.String getSubtype()
getSubtype
in class PDAnnotation
public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
setCustomAppearanceHandler
in class PDAnnotationMarkup
appearanceHandler
- public void constructAppearances()
PDAnnotation
constructAppearances
in class PDAnnotationMarkup
public void constructAppearances(PDDocument document)
PDAnnotation
constructAppearances
in class PDAnnotationMarkup