| java.lang.Object | ||||
| ↳ | com.pspdfkit.annotations.Annotation | |||
| ↳ | com.pspdfkit.annotations.ShapeAnnotation | |||
| ↳ | com.pspdfkit.annotations.BaseLineAnnotation | |||
| ↳ | com.pspdfkit.annotations.PolygonAnnotation | |||
Represents a closed polygon on a page.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
PolygonAnnotation(int pageIndex, List<PointF> points)
Creates a new polygon annotation.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| List<PointF> |
getPoints()
Returns polygon points in PDF coordinates.
| ||||||||||
| AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
| void |
setPoints(List<PointF> points)
Sets polygon points in PDF coordinates.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Pair<LineEndType, LineEndType> |
getLineEnds()
Returns current line ending styles for this line.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.BaseLineAnnotation
| |||||||||||
From class
com.pspdfkit.annotations.ShapeAnnotation
| |||||||||||
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
From class
java.lang.Object
| |||||||||||
Creates a new polygon annotation.
| pageIndex | Page to which this annotation will be attached to. |
|---|---|
| points | List of points in polygon annotation. |
Returns polygon points in PDF coordinates.
Gets the annotation type of the annotation.
Sets polygon points in PDF coordinates.
| points | List of points in polygon annotation. |
|---|
Returns current line ending styles for this line.
NONE.