toggle menu
nutrient
Nutrient
switch theme
search in API
nutrient
/
com.pspdfkit.annotations
/
LineAnnotation
Line
Annotation
open
class
LineAnnotation
:
BaseLineAnnotation
Represents a line on the page.
Members
Constructors
Line
Annotation
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.
Properties
is
Calibration
Link copied to clipboard
open
val
isCalibration
:
Boolean
Functions
get
Line
Ends
Link copied to clipboard
@
NonNull
open
fun
getLineEnds
(
)
:
Pair
<
LineEndType
,
LineEndType
>
Returns current line ending styles for this line.
get
Points
Link copied to clipboard
@
NonNull
open
fun
getPoints
(
)
:
Pair
<
PointF
,
PointF
>
Returns starting and ending point of this line in PDF coordinates.
get
Type
Link copied to clipboard
@
NonNull
open
fun
getType
(
)
:
AnnotationType
Gets the annotation type of the annotation.
set
Line
Ends
Link copied to clipboard
open
fun
setLineEnds
(
@
NonNull
lineEnd1
:
LineEndType
,
@
NonNull
lineEnd2
:
LineEndType
)
Sets line ending style for this line.
set
Points
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.