ShapeAnnotation

abstract class ShapeAnnotation : Annotation

Abstract base-class of all shape annotations: LineAnnotation, SquareAnnotation, CircleAnnotation, PolygonAnnotation, PolylineAnnotation. Shape annotations can also be measurement annotations if created using the measurement tools included with the Measurement Tools license component.

Inheritors

Functions

Link copied to clipboard
Returns the MeasurementPrecision of this shape annotation if this is a measurement, null if not.
Link copied to clipboard
Returns the Scale of this shape annotation if this is a measurement, null if not.
Link copied to clipboard
Returns the minimum size of the annotation.
Link copied to clipboard
Returns true when the annotation is a measurement annotation.
Link copied to clipboard
Sets the MeasurementPrecision of this shape annotation.
Link copied to clipboard
open fun setMeasurementScale(@NonNull scale: Scale)
Sets the Scale of this shape annotation.
Link copied to clipboard
open fun updateTransformationProperties(@NonNull newBoundingBox: RectF, @NonNull oldBoundingBox: RectF)
Annotations may override this method to transform their properties (i.e.