java.lang.Object | ||||
↳ | com.pspdfkit.annotations.Annotation | |||
↳ | com.pspdfkit.annotations.ShapeAnnotation | |||
↳ | com.pspdfkit.annotations.BaseLineAnnotation | |||
↳ | com.pspdfkit.annotations.LineAnnotation |
Represents a line on the page.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LineAnnotation(int pageIndex, PointF point1, PointF point2)
Creates a new line annotation.
| |||||||||||
LineAnnotation(int pageIndex, PointF point1, PointF point2, Scale scale, MeasurementPrecision precision)
Creates a measurement distance annotation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Pair<LineEndType, LineEndType> |
getLineEnds()
Returns current line ending styles for this line.
| ||||||||||
Pair<PointF, PointF> |
getPoints()
Returns starting and ending point of this line in PDF coordinates.
| ||||||||||
AnnotationType |
getType()
Gets the annotation type of the annotation.
| ||||||||||
void |
setLineEnds(LineEndType lineEnd1, LineEndType lineEnd2)
Sets line ending style for this line.
| ||||||||||
void |
setPoints(PointF point1, PointF point2)
Sets a starting and ending point of the line in PDF coordinates.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new line annotation.
pageIndex | Page to which this annotation will be attached to. |
---|---|
point1 | Starting point of the line in PDF coordinates. |
point2 | End point of the line in PDF coordinates. |
Creates a measurement distance annotation. Will throw an exception if Measurement Tools are not licensed.
pageIndex | Page to which this annotation will be attached to. |
---|---|
point1 | Starting point of the line in PDF coordinates. |
point2 | End point of the line in PDF coordinates. |
scale | Measurement Scale for the annotation. |
precision | Measurement MeasurementPrecision for the annotation.
|
Returns current line ending styles for this line.
NONE
.
Returns starting and ending point of this line in PDF coordinates.
Gets the annotation type of the annotation.
Sets line ending style for this line.
lineEnd1 | LineEndType for start of this line. |
---|---|
lineEnd2 | LineEndType for end of this line.
|
Sets a starting and ending point of the line in PDF coordinates.
point1 | Starting point of the line in PDF coordinates. |
---|---|
point2 | End point of the line in PDF coordinates. |