public class DefaultAnnotationSelectionDrawable extends java.lang.Object implements IAnnotationSelectionDrawable
IAnnotationSelectionDrawable
which draws selection overlay with strokeConstructor and Description |
---|
DefaultAnnotationSelectionDrawable(int color,
float opacity,
float strokeWidth)
Creates a new instance of
DefaultAnnotationSelectionDrawable class |
Modifier and Type | Method and Description |
---|---|
void |
onDraw(android.graphics.Canvas canvas,
android.graphics.Path annotationSelection)
Draws overlay for selected annotation
|
public DefaultAnnotationSelectionDrawable(int color, float opacity, float strokeWidth)
DefaultAnnotationSelectionDrawable
classcolor
- The color of selection overlayopacity
- The opacity of selection overlaystrokeWidth
- The stroke width of selection overlaypublic void onDraw(android.graphics.Canvas canvas, android.graphics.Path annotationSelection)
onDraw
in interface IAnnotationSelectionDrawable
canvas
- The canvas to draw onannotationSelection
- The path which contents the annotation selection overlay to draw