Class AxisMarkerAnnotation.CartesianAnnotationPlacementStrategy<T>
Inheritance
AxisMarkerAnnotation.CartesianAnnotationPlacementStrategy<T>
Namespace:
Assembly: .dll
Syntax
protected static class AxisMarkerAnnotation.CartesianAnnotationPlacementStrategy<T> extends AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase<T>
Type Parameters
Constructors
CartesianAnnotationPlacementStrategy(T annotation, boolean clipAdornerToAnnotationSurface)
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
createAdornerActionForResizingGripWithIndex(int resizingGripIndex, int resizingGripXOffset, int resizingGripYOffset)
Declaration
protected IAnnotationAdornerAction createAdornerActionForResizingGripWithIndex(int resizingGripIndex, int resizingGripXOffset, int resizingGripYOffset)
Parameters
| Type |
Name |
Description |
| int |
resizingGripIndex |
|
| int |
resizingGripXOffset |
|
| int |
resizingGripYOffset |
|
Returns
Overrides
drawResizingGrips(Canvas canvas, AnnotationCoordinates annotationCoordinates)
Draws resizing grips for parent annotation
Declaration
protected void drawResizingGrips(Canvas canvas, AnnotationCoordinates annotationCoordinates)
Parameters
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
Returns
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
Overrides
isInBounds(AnnotationCoordinates coordinates, IAnnotationSurface annotationsSurface)
Declaration
public boolean isInBounds(AnnotationCoordinates coordinates, IAnnotationSurface annotationsSurface)
Parameters
Returns
Overrides
placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
Declaration
public void placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
Parameters
Overrides