java.lang.Object | ||||
↳ | com.pspdfkit.annotations.Annotation | |||
↳ | com.pspdfkit.annotations.ShapeAnnotation | |||
↳ | com.pspdfkit.annotations.BaseLineAnnotation | |||
↳ | com.pspdfkit.annotations.PolylineAnnotation |
Represents a polyline on the page. Polyline is similar to PolygonAnnotation
but is not
closed and supports LineEndType
s.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PolylineAnnotation(int pageIndex, List<PointF> points)
Creates a new polyline annotation.
| |||||||||||
PolylineAnnotation(int pageIndex, List<PointF> points, Scale scale, FloatPrecision precision)
Creates a measurement perimeter annotation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Pair<LineEndType, LineEndType> |
getLineEnds()
Returns current line ending styles for this polyline.
| ||||||||||
List<PointF> |
getPoints()
Returns polyline points in PDF coordinates.
| ||||||||||
AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
void |
setLineEnds(LineEndType lineEnd1, LineEndType lineEnd2)
Sets line ending style for this polyline.
| ||||||||||
void |
setPoints(List<PointF> points)
Sets polyline points in PDF coordinates.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new polyline annotation.
pageIndex | Page to which this annotation will be attached to. |
---|---|
points | List of points in polyline annotation. |
Creates a measurement perimeter 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 polyline annotation. |
scale | Measurement Scale for the annotation. |
precision | Measurement FloatPrecision for the annotation.
|
Returns current line ending styles for this polyline.
NONE
.
Returns polyline points in PDF coordinates.
Gets the annotation type of the annotation.
Sets line ending style for this polyline.
lineEnd1 | LineEndType for start of this polyline. |
---|---|
lineEnd2 | LineEndType for end of this polyline.
|
Sets polyline points in PDF coordinates.
points | List of points in polyline annotation. |
---|