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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PolygonAnnotation(int pageIndex, List<PointF> points)
Creates a new polygon annotation.
| |||||||||||
PolygonAnnotation(int pageIndex, List<PointF> points, Scale scale, FloatPrecision precision)
Creates a measurement rectangular area annotation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BorderStyle |
getBorderStyle()
Returns the current border style on the annotation or
NONE if none is
set. | ||||||||||
List<PointF> |
getPoints()
Returns polygon points in PDF coordinates.
| ||||||||||
AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
void |
setBorderStyle(BorderStyle borderStyle)
Sets a border style for current 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new polygon annotation.
pageIndex | Page to which this annotation will be attached to. |
---|---|
points | List of points in polygon annotation. |
Creates a measurement rectangular area annotation. Will throw an exception if Measurement Tools are not licensed.
pageIndex | Page to which this annotation will be attached to. |
---|---|
points | List of points in polygon annotation. |
scale | Measurement Scale for the annotation. |
precision | Measurement FloatPrecision for the annotation.
|
Returns polygon points in PDF coordinates.
Gets the annotation type of the annotation.
Sets a border style for current annotation. It should be accompanied with setBorderColor(int)
call to set the border color as well.
borderStyle | BorderStyle to be set. NONE to clear it.
|
---|
Sets polygon points in PDF coordinates.
points | List of points in polygon annotation. |
---|
Returns current line ending styles for this line.
NONE
.