protected static class HorizontalLineAnnotation.CartesianAnnotationPlacementStrategy extends LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<HorizontalLineAnnotation>
HorizontalLineAnnotation
instanceselectionPath
annotation
Modifier | Constructor and Description |
---|---|
protected |
CartesianAnnotationPlacementStrategy(HorizontalLineAnnotation annotation,
boolean clipAdornerToAnnotationSurface)
Creates a new instance of
LineAnnotationBase.CartesianAnnotationPlacementStrategy class |
Modifier and Type | Method and Description |
---|---|
protected IAnnotationAdornerAction |
createAdornerActionForAnnotationLabel(AnnotationLabel label)
Creates a
IAnnotationAdornerAction for specified annotation label |
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 |
placeAnnotationLabel(AnnotationCoordinates coordinates,
CanvasLayout.LayoutParams layoutParams,
LabelPlacement labelPlacement)
Places
AnnotationLabel instance with specific annotation coordinates |
protected void |
updateSelectionOverlay(android.graphics.Path selectionPath,
AnnotationCoordinates coordinates)
Updates the shape of selection overlay for parent
AnnotationBase |
placeAnnotation, selectAdornerActionForPoint
createAdornerActionForAnnotationHit, createAdornerActionForResizingGripWithIndex, drawAdorner, drawAdornerInternal, drawSelectionOverlayInternal, internalMoveAnnotationTo, isCoordinateValid, isInBounds, moveAnnotationTo, moveBasePointTo
protected CartesianAnnotationPlacementStrategy(HorizontalLineAnnotation annotation, boolean clipAdornerToAnnotationSurface)
LineAnnotationBase.CartesianAnnotationPlacementStrategy
classannotation
- The annotation to placeclipAdornerToAnnotationSurface
- If true adorner for annotation should be clipped to its parent IAnnotationSurface
protected void placeAnnotationLabel(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams, LabelPlacement labelPlacement)
AnnotationLabel
instance with specific annotation coordinatesplaceAnnotationLabel
in class LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<HorizontalLineAnnotation>
coordinates
- The annotation coordinateslayoutParams
- The layout params for annotation labellabelPlacement
- The LabelPlacement
for annotation labelprotected IAnnotationAdornerAction createAdornerActionForAnnotationLabel(AnnotationLabel label)
IAnnotationAdornerAction
for specified annotation labelcreateAdornerActionForAnnotationLabel
in class LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<HorizontalLineAnnotation>
label
- The AnnotationLabel
to create IAnnotationAdornerAction
forIAnnotationAdornerAction
to use for specified annotation labelprotected void drawResizingGrips(android.graphics.Canvas canvas, AnnotationCoordinates annotationCoordinates)
drawResizingGrips
in class LineAnnotationBase.CartesianAnnotationPlacementStrategy<HorizontalLineAnnotation>
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 LineAnnotationBase.CartesianAnnotationPlacementStrategy<HorizontalLineAnnotation>
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 pointprotected void updateSelectionOverlay(android.graphics.Path selectionPath, AnnotationCoordinates coordinates)
AnnotationBase
updateSelectionOverlay
in class LineAnnotationBase.CartesianAnnotationPlacementStrategy<HorizontalLineAnnotation>
selectionPath
- The Path
instance to updatecoordinates
- The annotation coordinates