public interface IAnnotationPlacementStrategy
Modifier and Type | Method and Description |
---|---|
void |
drawAdorner(android.graphics.Canvas adornerCanvas)
Draws adorner on specified
Canvas |
boolean |
isInBounds(AnnotationCoordinates coordinates,
IAnnotationSurface annotationsSurface)
Checks whether coordinates are within canvas bounds
|
void |
moveAnnotationTo(AnnotationCoordinates coordinates,
float horizontalOffset,
float verticalOffset,
IAnnotationSurface annotationSurface)
Moves the annotation to a specific horizontal and vertical offset
|
void |
moveBasePointTo(float xCoord,
float yCoord,
int index)
Sets base point for annotation
|
void |
placeAnnotation(AnnotationCoordinates coordinates,
CanvasLayout.LayoutParams layoutParams)
Places annotation with specific annotation coordinates
|
IAnnotationAdornerAction |
selectAdornerActionForPoint(float x,
float y,
IAdornerLayer relativeTo)
Selects the
IAnnotationAdornerAction for specified point on IAdornerLayer |
void placeAnnotation(AnnotationCoordinates coordinates, CanvasLayout.LayoutParams layoutParams)
coordinates
- The annotation coordinateslayoutParams
- The annotation layout paramsboolean isInBounds(AnnotationCoordinates coordinates, IAnnotationSurface annotationsSurface)
coordinates
- The annotation coordinatesannotationsSurface
- The parent annotation surfacevoid moveBasePointTo(float xCoord, float yCoord, int index)
xCoord
- The x coordinate of base point in pixelsyCoord
- The y coordinate of base point in pixelsindex
- The index of base point to movevoid moveAnnotationTo(AnnotationCoordinates coordinates, float horizontalOffset, float verticalOffset, IAnnotationSurface annotationSurface)
coordinates
- The annotation coordinateshorizontalOffset
- The horizontal offset in pixelsverticalOffset
- The vertical offset in pixelsannotationSurface
- The parent annotation surfaceIAnnotationAdornerAction selectAdornerActionForPoint(float x, float y, IAdornerLayer relativeTo)
IAnnotationAdornerAction
for specified point on IAdornerLayer
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 nullvoid drawAdorner(android.graphics.Canvas adornerCanvas)
Canvas
adornerCanvas
- The target Canvas
to draw adorner on