Class LineAnnotationBase.CartesianAnnotationPlacementStrategy<T>
Defines a base placement strategy for LineAnnotationBase instance
Inheritance
LineAnnotationBase.CartesianAnnotationPlacementStrategy<T>
Inherited Members
Namespace:
Assembly: .dll
Syntax
protected static class LineAnnotationBase.CartesianAnnotationPlacementStrategy<T> extends AnnotationBase.CartesianAnnotationPlacementStrategyBase<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
CartesianAnnotationPlacementStrategy(T annotation, boolean clipAdornerToAnnotationSurface)
Creates a new instance of CartesianAnnotationPlacementStrategy class
Declaration
protected CartesianAnnotationPlacementStrategy(T annotation, boolean clipAdornerToAnnotationSurface)
Parameters
| Type | Name | Description |
|---|---|---|
| T | annotation | The annotation to place |
| boolean | clipAdornerToAnnotationSurface | If true adorner for annotation should be clipped to its parent IAnnotationSurface |
Methods
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
placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
Declaration
public void placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationCoordinates | coordinates | |
| CanvasLayout.LayoutParams | layoutParams |
updateSelectionOverlay(Path selectionPath, AnnotationCoordinates annotationCoordinates)
Updates the shape of selection overlay for parent AnnotationBase
Declaration
protected void updateSelectionOverlay(Path selectionPath, AnnotationCoordinates annotationCoordinates)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.Path | selectionPath | |
| AnnotationCoordinates | annotationCoordinates |