| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
LineAnnotation(int pageIndex, PointF point1, PointF point2)
Creates a new line 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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 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. |
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. |