public class PDAnnotationPolyline extends PDAnnotationMarkup
Modifier and Type | Field and Description |
---|---|
static String |
SUB_TYPE
The type of annotation.
|
RT_GROUP, RT_REPLY
Constructor and Description |
---|
PDAnnotationPolyline()
Constructor.
|
PDAnnotationPolyline(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.
|
String |
getEndPointEndingStyle()
This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section.
|
PDColor |
getInteriorColor()
This will retrieve the interior color with which to fill the annotation’s line endings.
|
String |
getStartPointEndingStyle()
This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section.
|
float[] |
getVertices()
This will retrieve the numbers that shall represent the alternating horizontal and vertical
coordinates.
|
void |
setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
Set a custom appearance handler for generating the annotations appearance streams.
|
void |
setEndPointEndingStyle(String style)
This will set the line ending style for the end point, see the LE_ constants for the possible values.
|
void |
setInteriorColor(PDColor ic)
This will set interior color of the line endings defined in the LE entry.
|
void |
setStartPointEndingStyle(String style)
This will set the line ending style for the start point, see the LE_ constants for the possible values.
|
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, setTitlePopup
createAnnotation, 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, setToggleNoView
public static final String SUB_TYPE
public PDAnnotationPolyline()
public PDAnnotationPolyline(COSDictionary dict)
dict
- The annotations dictionary.public void setStartPointEndingStyle(String style)
style
- The new style.public String getStartPointEndingStyle()
public void setEndPointEndingStyle(String style)
style
- The new style.public String getEndPointEndingStyle()
public void setInteriorColor(PDColor ic)
ic
- color.public PDColor getInteriorColor()
public float[] getVertices()
public void setVertices(float[] points)
points
- an array with the numbers that shall represent the alternating horizontal and
vertical coordinates.public void setCustomAppearanceHandler(PDAppearanceHandler appearanceHandler)
appearanceHandler
- custom appearance handlerpublic void constructAppearances()
PDAnnotation
constructAppearances
in class PDAnnotation
public void constructAppearances(PDDocument document)
PDAnnotation
constructAppearances
in class PDAnnotation
document
- the related documentCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.