Package org.apache.pdfbox.pdmodel.fdf
Class FDFAnnotationPolyline
java.lang.Object
org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
org.apache.pdfbox.pdmodel.fdf.FDFAnnotationPolyline
- All Implemented Interfaces:
COSObjectable
This represents a Polyline FDF annotation.
- Author:
- Ben Litchfield, Johanneke Lamberink
-
Field Summary
FieldsFields inherited from class org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
annot
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor.FDFAnnotationPolyline
(Element element) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionThis will retrieve the line ending style for the end point, possible values shown in the LE_ constants section.This will retrieve the interior color of the line endings defined in the LE entry.This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section.float[]
This will get the coordinates of the vertices.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
(Color color) 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[] vertices) This will set the coordinates of the vertices.Methods inherited from class org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setLockedContents, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
-
Field Details
-
SUBTYPE
COS Model value for SubType entry.- See Also:
-
-
Constructor Details
-
FDFAnnotationPolyline
public FDFAnnotationPolyline()Default constructor. -
FDFAnnotationPolyline
Constructor.- Parameters:
a
- An existing FDF Annotation.
-
FDFAnnotationPolyline
Constructor.- Parameters:
element
- An XFDF element.- Throws:
IOException
- If there is an error extracting information from the element.
-
-
Method Details
-
setVertices
public void setVertices(float[] vertices) This will set the coordinates of the vertices.- Parameters:
vertices
- array of floats [x1, y1, x2, y2, ...] vertex coordinates in default user space.
-
getVertices
public float[] getVertices()This will get the coordinates of the vertices.- Returns:
- array of floats [x1, y1, x2, y2, ...] vertex coordinates in default user space.
-
setStartPointEndingStyle
This will set the line ending style for the start point, see the LE_ constants for the possible values.- Parameters:
style
- The new style.
-
getStartPointEndingStyle
This will retrieve the line ending style for the start point, possible values shown in the LE_ constants section.- Returns:
- The ending style for the start point.
-
setEndPointEndingStyle
This will set the line ending style for the end point, see the LE_ constants for the possible values.- Parameters:
style
- The new style.
-
getEndPointEndingStyle
This will retrieve the line ending style for the end point, possible values shown in the LE_ constants section.- Returns:
- The ending style for the end point.
-
setInteriorColor
This will set interior color of the line endings defined in the LE entry.- Parameters:
color
- The interior color of the line endings.
-
getInteriorColor
This will retrieve the interior color of the line endings defined in the LE entry.- Returns:
- object representing the color.
-