public class PDAnnotationPolygon extends PDAnnotationMarkup
| Modifier and Type | Field and Description |
|---|---|
static String |
SUB_TYPE
The type of annotation.
|
RT_GROUP, RT_REPLY| Constructor and Description |
|---|
PDAnnotationPolygon()
Constructor.
|
PDAnnotationPolygon(COSDictionary dict)
Constructor.
|
| 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.
|
PDBorderEffectDictionary |
getBorderEffect()
This will retrieve the border effect dictionary, specifying effects to be applied used in
drawing the line.
|
PDColor |
getInteriorColor()
This will retrieve the interior color.
|
float[][] |
getPath()
PDF 2.0: This will retrieve the arrays that shall represent the alternating horizontal
and vertical coordinates for path building.
|
float[] |
getVertices()
This will retrieve the numbers that shall represent the alternating horizontal and vertical
coordinates.
|
void |
setBorderEffect(PDBorderEffectDictionary be)
This will set the border effect dictionary, specifying effects to be applied when drawing the
line.
|
void |
setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
Set a custom appearance handler for generating the annotations appearance streams.
|
void |
setInteriorColor(PDColor ic)
This will set interior color.
|
void |
setVertices(float[] points)
This will set the numbers that shall represent the alternating horizontal and vertical
coordinates.
|
getBorderStyle, getConstantOpacity, getCreationDate, getExternalData, getInReplyTo, getIntent, getPopup, getReplyType, getRichContents, getSubject, getTitlePopup, setBorderStyle, setConstantOpacity, setCreationDate, setExternalData, setInReplyTo, setIntent, setPopup, setReplyType, setRichContents, setSubject, setTitlePopupcreateAnnotation, equals, getAnnotationFlags, getAnnotationName, getAppearance, getAppearanceState, getBorder, getColor, getColor, getContents, getCOSObject, getModifiedDate, getNormalAppearanceStream, getOptionalContent, getPage, getRectangle, getStructParent, getSubtype, hashCode, 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, setSubtype, setToggleNoViewpublic static final String SUB_TYPE
public PDAnnotationPolygon()
public PDAnnotationPolygon(COSDictionary dict)
dict - The annotations dictionary.public void setInteriorColor(PDColor ic)
ic - color.public PDColor getInteriorColor()
public void setBorderEffect(PDBorderEffectDictionary be)
be - The border effect dictionary to set.public PDBorderEffectDictionary getBorderEffect()
public float[] getVertices()
public void setVertices(float[] points)
points - an array with the numbers that shall represent the alternating horizontal and
vertical coordinates.public float[][] getPath()
public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
appearanceHandler - custom appearance handlerpublic void constructAppearances()
PDAnnotationconstructAppearances in class PDAnnotationpublic void constructAppearances(PDDocument document)
PDAnnotationconstructAppearances in class PDAnnotationdocument - the related documentCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.