Package com.pspdfkit.annotations
Class SquareAnnotation
-
- All Implemented Interfaces:
public class SquareAnnotation extends ShapeAnnotation
Represents a square rendered on the page.
-
-
Constructor Summary
Constructors Constructor Description SquareAnnotation(int pageIndex, RectF rect)
Creates a new square annotation. SquareAnnotation(int pageIndex, RectF rect, Scale scale, MeasurementPrecision precision)
Creates a measurement rectangular area annotation. SquareAnnotation(AnnotationPropertyManager properties, boolean markDirty)
Intended for internal usage only
-
Method Summary
Modifier and Type Method Description AnnotationType
getType()
Gets the annotation type of the annotation. -
-
Constructor Detail
-
SquareAnnotation
SquareAnnotation(int pageIndex, RectF rect)
Creates a new square annotation.- Parameters:
pageIndex
- Page to which this annotation will be attached to.rect
- Bounding rectangle for this square.
-
SquareAnnotation
SquareAnnotation(int pageIndex, RectF rect, Scale scale, MeasurementPrecision precision)
Creates a measurement rectangular area annotation.- Parameters:
pageIndex
- Page to which this annotation will be attached to.rect
- Bounding rectangle for this square.scale
- Measurement com.pspdfkit.annotations.measurements.Scale for the annotation.precision
- Measurement MeasurementPrecision for the annotation.
-
SquareAnnotation
SquareAnnotation(AnnotationPropertyManager properties, boolean markDirty)
Intended for internal usage only
-
-
Method Detail
-
getType
@NonNull() AnnotationType getType()
Gets the annotation type of the annotation.
- Returns:
The type of the annotation. Makes down casting easier.
-
-
-
-