public class EllipseResizingGrip extends java.lang.Object implements IResizingGrip
IResizingGrip
implementation which is used by AnnotationBase
which draws ellipseConstructor and Description |
---|
EllipseResizingGrip(int strokeColor,
float strokeThickness,
int backgroundColor,
float radius)
Creates a new istance of
EllipseResizingGrip class |
Modifier and Type | Method and Description |
---|---|
boolean |
isHit(float xHitPoint,
float yHitPoint,
float xDrawnCoord,
float yDrawnCoord)
Checks whether this reising grip is hit
|
void |
onDraw(android.graphics.Canvas canvas,
float x,
float y)
Draw this resizing grip at specified point
|
public EllipseResizingGrip(int strokeColor, float strokeThickness, int backgroundColor, float radius)
EllipseResizingGrip
classstrokeColor
- The stroke color which is used to draw ellipse borderstrokeThickness
- The stroke thickness which is used to draw ellipse borderbackgroundColor
- The background color which is used to draw ellipse backgroundradius
- The radius of resizing grip in pixelspublic void onDraw(android.graphics.Canvas canvas, float x, float y)
onDraw
in interface IResizingGrip
canvas
- The Canvas
to draw resizing grip onx
- The x coordinate of point to draw in pixelsy
- The y coordiante of point to draw in pixelspublic boolean isHit(float xHitPoint, float yHitPoint, float xDrawnCoord, float yDrawnCoord)
isHit
in interface IResizingGrip
xHitPoint
- The x coordinate of hit test point in pixelsyHitPoint
- The y coordinate of hit test point in pixelsxDrawnCoord
- The x coordinate of point where resizing grip was drawnyDrawnCoord
- The y coordinate of point where resizing grip was drawn