LibreOffice Module android (master) 1
Public Member Functions | Public Attributes | Private Attributes | List of all members
org.libreoffice.canvas.BitmapHandle Class Referenceabstract

Bitmap handle canvas element is used to show a handle on the screen. More...

Inheritance diagram for org.libreoffice.canvas.BitmapHandle:
[legend]
Collaboration diagram for org.libreoffice.canvas.BitmapHandle:
[legend]

Public Member Functions

void onDraw (Canvas canvas)
 Draw the bitmap handle to the canvas. More...
 
boolean onHitTest (float x, float y)
 Test if the bitmap has been hit. More...
 
void reposition (float x, float y)
 Change the position of the handle. More...
 
- Public Member Functions inherited from org.libreoffice.canvas.CommonCanvasElement
boolean isVisible ()
 Is element visible? More...
 
void setVisible (boolean visible)
 Set element visibility. More...
 
void draw (Canvas canvas)
 Trigger drawing the element on the canvas. More...
 
boolean contains (float x, float y)
 Hit test. More...
 
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...
 

Public Attributes

final RectF mDocumentPosition
 

Private Attributes

final Bitmap mBitmap
 

Detailed Description

Bitmap handle canvas element is used to show a handle on the screen.

The handle visual comes from the bitmap, which must be provided in time of construction.

Definition at line 15 of file BitmapHandle.java.

Member Function Documentation

◆ onDraw()

void org.libreoffice.canvas.BitmapHandle.onDraw ( Canvas  canvas)
inline

Draw the bitmap handle to the canvas.

Parameters
canvas- the canvas

Definition at line 40 of file BitmapHandle.java.

References org.libreoffice.canvas.BitmapHandle.mBitmap.

◆ onHitTest()

boolean org.libreoffice.canvas.BitmapHandle.onHitTest ( float  x,
float  y 
)
inline

Test if the bitmap has been hit.

Parameters
x- x coordinate
y- y coordinate
Returns
true if the bitmap has been hit

Definition at line 51 of file BitmapHandle.java.

References x, and y.

◆ reposition()

void org.libreoffice.canvas.BitmapHandle.reposition ( float  x,
float  y 
)
inline

Change the position of the handle.

Parameters
x- x coordinate
y- y coordinate

Reimplemented in org.libreoffice.canvas.SelectionHandleMiddle, and org.libreoffice.canvas.SelectionHandleStart.

Definition at line 60 of file BitmapHandle.java.

References x, and y.

Referenced by org.libreoffice.overlay.DocumentOverlayView.repositionWithViewport().

Member Data Documentation

◆ mBitmap

final Bitmap org.libreoffice.canvas.BitmapHandle.mBitmap
private

Definition at line 17 of file BitmapHandle.java.

Referenced by org.libreoffice.canvas.BitmapHandle.onDraw().

◆ mDocumentPosition

final RectF org.libreoffice.canvas.BitmapHandle.mDocumentPosition

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