public class FDFAnnotationPolygon extends FDFAnnotation
Modifier and Type | Field and Description |
---|---|
static String |
SUBTYPE
COS Model value for SubType entry.
|
annot
Constructor and Description |
---|
FDFAnnotationPolygon()
Default constructor.
|
FDFAnnotationPolygon(COSDictionary a)
Constructor.
|
FDFAnnotationPolygon(Element element)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Color |
getInteriorColor()
This will get interior color of the drawn area.
|
float[] |
getVertices()
This will get the coordinates of the the vertices.
|
void |
setInteriorColor(Color color)
This will set interior color of the drawn area.
|
void |
setVertices(float[] vertices)
This will set the coordinates of the the vertices.
|
create, getBorderEffect, getBorderStyle, getColor, getContents, getCOSObject, getCreationDate, getDate, getIntent, getName, getOpacity, getPage, getRectangle, getRichContents, getStringOrStream, getSubject, getTitle, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrinted, isReadOnly, isToggleNoView, setBorderEffect, setBorderStyle, setColor, setContents, setCreationDate, setDate, setHidden, setIntent, setInvisible, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPage, setPrinted, setReadOnly, setRectangle, setRichContents, setSubject, setTitle, setToggleNoView
public static final String SUBTYPE
public FDFAnnotationPolygon()
public FDFAnnotationPolygon(COSDictionary a)
a
- An existing FDF Annotation.public FDFAnnotationPolygon(Element element) throws IOException
element
- An XFDF element.IOException
- If there is an error extracting information from the element.public void setVertices(float[] vertices)
vertices
- array of floats [x1, y1, x2, y2, ...] vertex coordinates in default user space.public float[] getVertices()
public final void setInteriorColor(Color color)
color
- The interior color of the drawn area.public Color getInteriorColor()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.