T
- The type of annotation to placeprotected abstract static class AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase<T extends AnchorPointAnnotation> extends AnnotationBase.CartesianAnnotationPlacementStrategyBase<T>
AnchorPointAnnotation
instanceselectionPath
annotation
Modifier | Constructor and Description |
---|---|
protected |
CartesianAnchorPointAnnotationPlacementStrategyBase(T annotation,
boolean clipAdornerToAnnotationSurface)
Creates a new instance of
AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase class |
Modifier and Type | Method and Description |
---|---|
protected void |
drawResizingGrips(android.graphics.Canvas canvas,
AnnotationCoordinates annotationCoordinates)
Draws resizing grips for parent annotation
|
protected int |
getResizingGripHitIndex(float hitPointX,
float hitPointY,
AnnotationCoordinates annotationCoordinates)
Gets the index of
IResizingGrip for parent annotation at specified point on screen |
protected void |
internalMoveAnnotationTo(AnnotationCoordinates coordinates,
float horizontalOffset,
float verticalOffset,
IAnnotationSurface annotationSurface)
Moves parent annotation in X, Y direction with specified offset in pixels
|
void |
placeAnnotation(AnnotationCoordinates coordinates,
CanvasLayout.LayoutParams layoutParams)
Places annotation with specific annotation coordinates
|
createAdornerActionForAnnotationHit, createAdornerActionForResizingGripWithIndex, drawAdorner, drawAdornerInternal, drawSelectionOverlayInternal, isCoordinateValid, isInBounds, moveAnnotationTo, moveBasePointTo, selectAdornerActionForPoint, updateSelectionOverlay
protected CartesianAnchorPointAnnotationPlacementStrategyBase(T annotation, boolean clipAdornerToAnnotationSurface)
AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase
classannotation
- The annotation to placeclipAdornerToAnnotationSurface
- If true adorner for annotation should be clipped to its parent IAnnotationSurface
public void placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
coordinates
- The annotation coordinateslayoutParams
- The annotation layout paramsprotected void internalMoveAnnotationTo(AnnotationCoordinates coordinates, float horizontalOffset, float verticalOffset, IAnnotationSurface annotationSurface)
internalMoveAnnotationTo
in class AnnotationBase.CartesianAnnotationPlacementStrategyBase<T extends AnchorPointAnnotation>
coordinates
- The AnnotationCoordinates
instance associated with parent annotationhorizontalOffset
- The horizontal offset in pixelsverticalOffset
- The vertical offset in pixelsannotationSurface
- The parent IAnnotationSurface
protected void drawResizingGrips(android.graphics.Canvas canvas, AnnotationCoordinates annotationCoordinates)
drawResizingGrips
in class AnnotationBase.CartesianAnnotationPlacementStrategyBase<T extends AnchorPointAnnotation>
canvas
- The Canvas
to draw resizing grips onannotationCoordinates
- The AnnotationCoordinates
instance associated with parent annotationprotected int getResizingGripHitIndex(float hitPointX, float hitPointY, AnnotationCoordinates annotationCoordinates)
IResizingGrip
for parent annotation at specified point on screengetResizingGripHitIndex
in class AnnotationBase.CartesianAnnotationPlacementStrategyBase<T extends AnchorPointAnnotation>
hitPointX
- The x coordinate of hit test point in pixelshitPointY
- The y coordinate of hit test point in pixelsannotationCoordinates
- The AnnotationCoordinates
instance associated with parent annotationIResizingGrip
which lies below hit test point, otherwise returns -1 which indicates that there is not IResizingGrip
at specified hit test point