| java.lang.Object | |||
| ↳ | com.pspdfkit.annotations.Annotation | ||
| ↳ | com.pspdfkit.annotations.ShapeAnnotation | ||
| ↳ | com.pspdfkit.annotations.BaseLineAnnotation | ||
Known Direct Subclasses
|
Abstract base class for PolygonAnnotation and PolylineAnnotation.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BaseLineAnnotation(int pageIndex) | |||||||||||
| BaseLineAnnotation(AnnotationProperties annotationProperties, NativeAnnotation nativeAnnotation) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int |
getBorderColor()
Returns the border color of this annotation or
TRANSPARENT if no color is set. | ||||||||||
| List<Integer> |
getDashArray()
Returns currently set dash array or
null if no pattern is set. | ||||||||||
| BorderStyle |
getLineStyle()
Returns currently set line drawing style.
| ||||||||||
| float |
getLineWidth()
Gets line width/thickness.
| ||||||||||
| Size |
getMinimumSize()
Returns the minimum size of the annotation.
| ||||||||||
| void |
setBorderColor(int color)
Sets the border color for this annotation.
| ||||||||||
| void |
setDashArray(List<Integer> dashes)
Sets a dash style for the line.
| ||||||||||
| void |
setLineStyle(BorderStyle style)
Sets current drawing style of the line.
| ||||||||||
| void |
setLineWidth(float lineWidth)
Sets line width/thickness.
| ||||||||||
| void |
updateTransformationProperties(RectF newBoundingBox, RectF oldBoundingBox)
Annotations may override this method to transform their properties (i.e.
| ||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Pair<LineEndType, LineEndType> |
getLineEnds()
Returns current line ending styles for this line.
| ||||||||||
| void |
setLineEnds(LineEndType lineEnd1, LineEndType lineEnd2)
Sets line ending style for this line.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pspdfkit.annotations.ShapeAnnotation
| |||||||||||
From class
com.pspdfkit.annotations.Annotation
| |||||||||||
From class
java.lang.Object
| |||||||||||
Returns the border color of this annotation or TRANSPARENT if no color is set. Note that alpha
channel is not taken into account as per PDF specifications.
TRANSPARENT if no color is set.
Returns currently set dash array or null if no pattern is set.
Returns currently set line drawing style.
NONE if none is set.
Gets line width/thickness.
Returns the minimum size of the annotation.
Sets the border color for this annotation.
| color | The border color or Color#TRANSPARENT to clear the field. |
|---|
Sets a dash style for the line. It's in form of an array where the numbers mean
full_length, empty length, full_length... etc.. The pattern is repeated.
To get a dashed line, setLineStyle(BorderStyle) should be set to DASHED
and color of the line should be set with setColor(int).
| dashes | List of integer numbers representing lengths of a pattern. E.g. { 2, 3 } will generate a dash pattern with lines of length 2 and empty spaces of length 3. |
|---|
Sets current drawing style of the line.
| style | Line style, one of BorderStyle constants.
|
|---|
Sets line width/thickness.
| lineWidth | Line width in PDF points. |
|---|
Annotations may override this method to transform their properties (i.e. points, rects, sizes) whenever the bounding box of the annotation changed.
| newBoundingBox | New bounding box of the annotation (in PDF points). |
|---|---|
| oldBoundingBox | Old bounding box of the annotation (in PDF points). |
Returns current line ending styles for this line.
NONE.
Sets line ending style for this line.
| lineEnd1 | LineEndType for start of this line. |
|---|---|
| lineEnd2 | LineEndType for end of this line.
|