|
LibreOffice Module android (master) 1
|
Bitmap handle canvas element is used to show a handle on the screen. More...
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 |
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.
|
inline |
Draw the bitmap handle to the canvas.
| canvas | - the canvas |
Definition at line 40 of file BitmapHandle.java.
References org.libreoffice.canvas.BitmapHandle.mBitmap.
|
inline |
Test if the bitmap has been hit.
| x | - x coordinate |
| y | - y coordinate |
Definition at line 51 of file BitmapHandle.java.
|
inline |
Change the position of the handle.
| 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.
Referenced by org.libreoffice.overlay.DocumentOverlayView.repositionWithViewport().
|
private |
Definition at line 17 of file BitmapHandle.java.
Referenced by org.libreoffice.canvas.BitmapHandle.onDraw().
| final RectF org.libreoffice.canvas.BitmapHandle.mDocumentPosition |
Definition at line 16 of file BitmapHandle.java.
Referenced by org.libreoffice.canvas.SelectionHandle.dragStart(), org.libreoffice.overlay.DocumentOverlayView.positionHandle(), and org.libreoffice.overlay.DocumentOverlayView.repositionWithViewport().