Class LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<T>
Defines a base placement strategy for LineAnnotationWithLabelsBase instance
Inheritance
LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<T>
Inherited Members
Namespace:
Assembly: .dll
Syntax
protected abstract static class LineAnnotationWithLabelsBase.CartesianAnnotationWithLabelsPlacementStrategyBase<T> extends LineAnnotationBase.CartesianAnnotationPlacementStrategy<T>
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
CartesianAnnotationWithLabelsPlacementStrategyBase(T annotation, boolean clipAdornerToAnnotationSurface)
Creates a new instance of CartesianAnnotationWithLabelsPlacementStrategyBase class
Declaration
protected CartesianAnnotationWithLabelsPlacementStrategyBase(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
createAdornerActionForAnnotationLabel(AnnotationLabel label)
Creates a IAnnotationAdornerAction for specified annotation label
Declaration
protected abstract IAnnotationAdornerAction createAdornerActionForAnnotationLabel(AnnotationLabel label)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationLabel | label | The AnnotationLabel to create IAnnotationAdornerAction for |
Returns
| Type | Description |
|---|---|
| IAnnotationAdornerAction | The IAnnotationAdornerAction to use for specified annotation label |
placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
Declaration
public void placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationCoordinates | coordinates | |
| CanvasLayout.LayoutParams | layoutParams |
Overrides
placeAnnotationLabel(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams, LabelPlacement labelPlacement)
Places AnnotationLabel instance with specific annotation coordinates
Declaration
protected abstract void placeAnnotationLabel(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams, LabelPlacement labelPlacement)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnotationCoordinates | coordinates | The annotation coordinates |
| CanvasLayout.LayoutParams | layoutParams | The layout params for annotation label |
| LabelPlacement | labelPlacement | The LabelPlacement for annotation label |
selectAdornerActionForPoint(float x, float y, IAdornerLayer relativeTo)
Declaration
public IAnnotationAdornerAction selectAdornerActionForPoint(float x, float y, IAdornerLayer relativeTo)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | |
| float | y | |
| IAdornerLayer | relativeTo |
Returns
| Type | Description |
|---|---|
| IAnnotationAdornerAction |