LineAnnotation

Represents a line on the page.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull point1: PointF, @NonNull point2: PointF)
Creates a new line annotation.
constructor(@IntRange(from = 0) pageIndex: Int, @NonNull point1: PointF, @NonNull point2: PointF, @NonNull scale: Scale, @NonNull precision: MeasurementPrecision)
Creates a measurement distance annotation.
constructor(@NonNull properties: AnnotationPropertyMap, markDirty: Boolean)
Intended for internal usage only.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun createCalibrationLineAnnotation(@IntRange(from = 0) pageIndex: Int, @NonNull point1: PointF, @NonNull point2: PointF): LineAnnotation
Creates a new LineAnnotation with the `isCalibration` flag set to true.
Link copied to clipboard
Returns current line ending styles for this line.
Link copied to clipboard
Returns starting and ending point of this line 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 line.
Link copied to clipboard
open fun setPoints(@NonNull point1: PointF, @NonNull point2: PointF)
Sets a starting and ending point of the line in PDF coordinates.