LibreOffice Module android (master) 1
Public Member Functions | List of all members
org.libreoffice.canvas.CanvasElement Interface Reference

Canvas element is an element (or part) that is drawn canvas and can potentially be interacted with. More...

Inheritance diagram for org.libreoffice.canvas.CanvasElement:
[legend]

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...
 

Detailed Description

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.

Member Function Documentation

◆ contains()

boolean org.libreoffice.canvas.CanvasElement.contains ( float  x,
float  y 
)

Hit test - returns true if the object has been hit.

Parameters
x- x coordinate of the
y- y coordinate of the

Implemented in org.libreoffice.canvas.CalcSelectionBox, and org.libreoffice.canvas.CommonCanvasElement.

◆ draw()

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.

Parameters
canvas- the canvas

Implemented in org.libreoffice.canvas.CommonCanvasElement.

◆ isVisible()

boolean org.libreoffice.canvas.CanvasElement.isVisible ( )

Return if element is visible.

Implemented in org.libreoffice.canvas.CommonCanvasElement.

◆ setVisible()

void org.libreoffice.canvas.CanvasElement.setVisible ( boolean  visible)

Set element visibility.

Parameters
visible- is element visible

Implemented in org.libreoffice.canvas.CommonCanvasElement, and org.libreoffice.canvas.GraphicSelection.


The documentation for this interface was generated from the following file: