LibreOffice Module android (master) 1
|
Canvas element is an element (or part) that is drawn canvas and can potentially be interacted with. More...
Public Member Functions | |
void | draw (Canvas canvas) |
Called when the element needs to be draw no the canvas. More... | |
boolean | contains (float x, float y) |
Hit test - returns true if the object has been hit. More... | |
boolean | isVisible () |
Return if element is visible. More... | |
void | setVisible (boolean visible) |
Set element visibility. More... | |
Canvas element is an element (or part) that is drawn canvas and can potentially be interacted with.
Definition at line 18 of file CanvasElement.java.
boolean org.libreoffice.canvas.CanvasElement.contains | ( | float | x, |
float | y | ||
) |
Hit test - returns true if the object has been hit.
x | - x coordinate of the |
y | - y coordinate of the |
Implemented in org.libreoffice.canvas.CalcSelectionBox, and org.libreoffice.canvas.CommonCanvasElement.
void org.libreoffice.canvas.CanvasElement.draw | ( | Canvas | canvas | ) |
Called when the element needs to be draw no the canvas.
This method should call onDraw when conditions to draw are satisfied.
canvas | - the canvas |
Implemented in org.libreoffice.canvas.CommonCanvasElement.
boolean org.libreoffice.canvas.CanvasElement.isVisible | ( | ) |
Return if element is visible.
Implemented in org.libreoffice.canvas.CommonCanvasElement.
void org.libreoffice.canvas.CanvasElement.setVisible | ( | boolean | visible | ) |
Set element visibility.
visible | - is element visible |
Implemented in org.libreoffice.canvas.CommonCanvasElement, and org.libreoffice.canvas.GraphicSelection.