9package org.libreoffice.canvas;
11import android.graphics.Canvas;
12import android.graphics.Color;
13import android.graphics.Paint;
14import android.graphics.PointF;
15import android.graphics.RectF;
86 canvas.drawCircle(
x,
y, radius, fillPaint);
87 canvas.drawCircle(
x,
y, radius, strokePaint);
Common implementation to canvas elements.
This class is responsible to draw the selection handles, track the handle position and perform a hit ...
GraphicSelectionHandle(HandlePosition position)
Construct the handle - set the handle position on the selection.
void onDraw(Canvas canvas)
Draws the handle to the canvas.
void reposition(float x, float y)
Viewport has changed, reposition the handle to the input coordinates.
final HandlePosition mHandlePosition
final float HIT_AREA_INFLATE_FACTOR
The factor used to inflate the hit area.
void select()
Mark the handle as selected.
void reset()
Reset the selection for the handle.
boolean onHitTest(float x, float y)
Hit test for the handle.
HandlePosition getHandlePosition()
The position of the handle.
void drawFilledCircle(Canvas canvas, float x, float y, float radius, Paint strokePaint, Paint fillPaint)
Draw a filled and stroked circle to the canvas.
All possible handle positions.