Class VerticalLineAnnotation.CartesianAnnotationPlacementStrategy
Defines a placement strategy for VerticalLineAnnotation instance
Inheritance
VerticalLineAnnotation.CartesianAnnotationPlacementStrategy
Inherited Members
Namespace:
Assembly: .dll
Syntax
protected static class VerticalLineAnnotation.CartesianAnnotationPlacementStrategy extends LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<VerticalLineAnnotation>
Constructors
CartesianAnnotationPlacementStrategy(VerticalLineAnnotation annotation, boolean clipAdornerToAnnotationSurface)
Creates a new instance of CartesianAnnotationPlacementStrategy class
Declaration
protected CartesianAnnotationPlacementStrategy(VerticalLineAnnotation annotation, boolean clipAdornerToAnnotationSurface)
Parameters
| Type | Name | Description |
|---|---|---|
| VerticalLineAnnotation | annotation | The annotation to place |
| boolean | clipAdornerToAnnotationSurface | If true adorner for annotation should be clipped to its parent IAnnotationSurface |
Methods
createAdornerActionForAnnotationLabel(AnnotationLabel label)
Creates a IAnnotationAdornerAction for specified annotation label
Declaration
protected IAnnotationAdornerAction createAdornerActionForAnnotationLabel(AnnotationLabel label)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationLabel | label |
Returns
| Type | Description |
|---|---|
| IAnnotationAdornerAction |
Overrides
drawResizingGrips(Canvas canvas, AnnotationCoordinates annotationCoordinates)
Draws resizing grips for parent annotation
Declaration
protected void drawResizingGrips(Canvas canvas, AnnotationCoordinates annotationCoordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.Canvas | canvas | |
| AnnotationCoordinates | annotationCoordinates |
Overrides
getResizingGripHitIndex(float hitPointX, float hitPointY, AnnotationCoordinates annotationCoordinates)
Gets the index of IResizingGrip for parent annotation at specified point on screen
Declaration
protected int getResizingGripHitIndex(float hitPointX, float hitPointY, AnnotationCoordinates annotationCoordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| float | hitPointX | |
| float | hitPointY | |
| AnnotationCoordinates | annotationCoordinates |
Returns
| Type | Description |
|---|---|
| int |
Overrides
placeAnnotationLabel(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams, LabelPlacement labelPlacement)
Places AnnotationLabel instance with specific annotation coordinates
Declaration
protected void placeAnnotationLabel(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams, LabelPlacement labelPlacement)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationCoordinates | coordinates | |
| CanvasLayout.LayoutParams | layoutParams | |
| LabelPlacement | labelPlacement |
Overrides
updateSelectionOverlay(Path selectionPath, AnnotationCoordinates coordinates)
Updates the shape of selection overlay for parent AnnotationBase
Declaration
protected void updateSelectionOverlay(Path selectionPath, AnnotationCoordinates coordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.Path | selectionPath | |
| AnnotationCoordinates | coordinates |