cid#1607171 Data race condition
[LibreOffice.git] / android / source / src / java / org / libreoffice / canvas / CanvasElementImplRequirement.java
blob26789e8d8916d3d97e1792b272f5947d61615288
1 package org.libreoffice.canvas;
3 import android.graphics.Canvas;
5 /**
6 * The interface defines a set of method that a typical CanvasElement
7 * implementation should implement.
8 */
9 interface CanvasElementImplRequirement {
11 /**
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);
18 /**
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);