blob: 26789e8d8916d3d97e1792b272f5947d61615288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.libreoffice.canvas;
import android.graphics.Canvas;
/**
* The interface defines a set of method that a typical CanvasElement
* implementation should implement.
*/
interface CanvasElementImplRequirement {
/**
* Implement hit test here
* @param x - x coordinate of the
* @param y - y coordinate of the
*/
boolean onHitTest(float x, float y);
/**
* Called inside draw if the element is visible. Override this method to
* draw the element on the canvas.
*
* @param canvas - the canvas
*/
void onDraw(Canvas canvas);
}
|