| 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 LineEndTypes.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
PolylineAnnotation(int pageIndex, List<PointF> points)
Creates a new polyline 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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 polyline annotation.
| pageIndex | Page to which this annotation will be attached to. |
|---|---|
| points | List of points in polyline 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. |
|---|