T
- The type of annotation to placeprotected abstract static class LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<T extends LineAnnotationWithLabelsBase> extends LineAnnotationBase.CartesianAnnotationPlacementStrategy<T>
LineAnnotationWithLabelsBase
instanceselectionPath
annotation
Modifier | Constructor and Description |
---|---|
protected |
CartesianAnnotationWithLabelsPlacementStrategyBase(T annotation,
boolean clipAdornerToAnnotationSurface)
Creates a new instance of
LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase class |
Modifier and Type | Method and Description |
---|---|
protected abstract IAnnotationAdornerAction |
createAdornerActionForAnnotationLabel(AnnotationLabel label)
Creates a
IAnnotationAdornerAction for specified annotation label |
void |
placeAnnotation(AnnotationCoordinates coordinates,
CanvasLayout.LayoutParams layoutParams)
Places annotation with specific annotation coordinates
|
protected abstract void |
placeAnnotationLabel(AnnotationCoordinates coordinates,
CanvasLayout.LayoutParams layoutParams,
LabelPlacement labelPlacement)
Places
AnnotationLabel instance with specific annotation coordinates |
IAnnotationAdornerAction |
selectAdornerActionForPoint(float x,
float y,
IAdornerLayer relativeTo)
Selects the
IAnnotationAdornerAction for specified point on IAdornerLayer |
drawResizingGrips, getResizingGripHitIndex, updateSelectionOverlay
createAdornerActionForAnnotationHit, createAdornerActionForResizingGripWithIndex, drawAdorner, drawAdornerInternal, drawSelectionOverlayInternal, internalMoveAnnotationTo, isCoordinateValid, isInBounds, moveAnnotationTo, moveBasePointTo
protected CartesianAnnotationWithLabelsPlacementStrategyBase(T annotation, boolean clipAdornerToAnnotationSurface)
LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase
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)
placeAnnotation
in interface IAnnotationPlacementStrategy
placeAnnotation
in class LineAnnotationBase.CartesianAnnotationPlacementStrategy<T extends LineAnnotationWithLabelsBase>
coordinates
- The annotation coordinateslayoutParams
- The annotation layout paramsprotected abstract void placeAnnotationLabel(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams, LabelPlacement labelPlacement)
AnnotationLabel
instance with specific annotation coordinatescoordinates
- The annotation coordinateslayoutParams
- The layout params for annotation labellabelPlacement
- The LabelPlacement
for annotation labelpublic IAnnotationAdornerAction selectAdornerActionForPoint(float x, float y, IAdornerLayer relativeTo)
IAnnotationAdornerAction
for specified point on IAdornerLayer
selectAdornerActionForPoint
in interface IAnnotationPlacementStrategy
selectAdornerActionForPoint
in class AnnotationBase.CartesianAnnotationPlacementStrategyBase<T extends LineAnnotationWithLabelsBase>
x
- The x coordinate of point on the adorner layery
- The y coordinate of point on the adorner layerrelativeTo
- The adorner layerIAnnotationAdornerAction
if it is required for specified point, otherwise nullprotected abstract IAnnotationAdornerAction createAdornerActionForAnnotationLabel(AnnotationLabel label)
IAnnotationAdornerAction
for specified annotation labellabel
- The AnnotationLabel
to create IAnnotationAdornerAction
forIAnnotationAdornerAction
to use for specified annotation label