1 package org
.libreoffice
.canvas
;
3 import android
.graphics
.Canvas
;
6 * The interface defines a set of method that a typical CanvasElement
7 * implementation should implement.
9 interface CanvasElementImplRequirement
{
12 * Implement hit test here
13 * @param x - x coordinate of the
14 * @param y - y coordinate of the
16 boolean onHitTest(float x
, float y
);
19 * Called inside draw if the element is visible. Override this method to
20 * draw the element on the canvas.
22 * @param canvas - the canvas
24 void onDraw(Canvas canvas
);