Class AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase<T>
Defines a base placement strategy for AnchorPointAnnotation instance
Inheritance
AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase<T>
Inherited Members
Namespace:
Assembly: .dll
Syntax
protected abstract static class AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase<T> extends AnnotationBase.CartesianAnnotationPlacementStrategyBase<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
CartesianAnchorPointAnnotationPlacementStrategyBase(T annotation, boolean clipAdornerToAnnotationSurface)
Creates a new instance of CartesianAnchorPointAnnotationPlacementStrategyBase class
Declaration
protected CartesianAnchorPointAnnotationPlacementStrategyBase(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
internalMoveAnnotationTo(AnnotationCoordinates coordinates, float horizontalOffset, float verticalOffset, IAnnotationSurface annotationSurface)
Moves parent annotation in X, Y direction with specified offset in pixels
Declaration
protected void internalMoveAnnotationTo(AnnotationCoordinates coordinates, float horizontalOffset, float verticalOffset, IAnnotationSurface annotationSurface)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationCoordinates | coordinates | |
| float | horizontalOffset | |
| float | verticalOffset | |
| IAnnotationSurface | annotationSurface |
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 |