PolylineAnnotation

Represents a polyline on the page. Polyline is similar to PolygonAnnotation but is not closed and supports LineEndTypes.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull points: List<PointF>)
Creates a new polyline annotation.
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull points: List<PointF>, @NonNull scale: Scale, @NonNull precision: MeasurementPrecision)
Creates a measurement perimeter annotation.
constructor(@NonNull properties: AnnotationPropertyManager, markDirty: Boolean)
Intended for internal usage only.

Functions

Link copied to clipboard
Returns current line ending styles for this polyline.
Link copied to clipboard
Returns polyline points in PDF coordinates.
Link copied to clipboard
Gets the annotation type of the annotation.
Link copied to clipboard
open fun setLineEnds(@NonNull lineEnd1: LineEndType, @NonNull lineEnd2: LineEndType)
Sets line ending style for this polyline.
Link copied to clipboard
open fun setPoints(@NonNull points: List<PointF>)
Sets polyline points in PDF coordinates.