protected static class CustomAnnotation.CartesianAnnotationPlacementStrategy extends AnchorPointAnnotation.CartesianAnchorPointAnnotationPlacementStrategyBase<CustomAnnotation>
CustomAnnotation
instanceselectionPath
annotation
Modifier | Constructor and Description |
---|---|
protected |
CartesianAnnotationPlacementStrategy(CustomAnnotation customAnnotation,
boolean clipAdornerToAnnotationSurface)
Creates a new instance of
CustomAnnotation.CartesianAnnotationPlacementStrategy class |
Modifier and Type | Method and Description |
---|---|
boolean |
isInBounds(AnnotationCoordinates coordinates,
IAnnotationSurface annotationsSurface)
Checks whether coordinates are within canvas bounds
|
drawResizingGrips, getResizingGripHitIndex, internalMoveAnnotationTo, placeAnnotation
createAdornerActionForAnnotationHit, createAdornerActionForResizingGripWithIndex, drawAdorner, drawAdornerInternal, drawSelectionOverlayInternal, isCoordinateValid, moveAnnotationTo, moveBasePointTo, selectAdornerActionForPoint, updateSelectionOverlay
protected CartesianAnnotationPlacementStrategy(CustomAnnotation customAnnotation, boolean clipAdornerToAnnotationSurface)
CustomAnnotation.CartesianAnnotationPlacementStrategy
classcustomAnnotation
- The annotation to placeclipAdornerToAnnotationSurface
- If true adorner for annotation should be clipped to its parent IAnnotationSurface
public boolean isInBounds(AnnotationCoordinates coordinates, IAnnotationSurface annotationsSurface)
isInBounds
in interface IAnnotationPlacementStrategy
isInBounds
in class AnnotationBase.CartesianAnnotationPlacementStrategyBase<CustomAnnotation>
coordinates
- The annotation coordinatesannotationsSurface
- The parent annotation surface