|
LibreOffice Module android (master) 1
|
Handles the cursor drawing on the canvas. More...
Public Member Functions | |
| Cursor () | |
| Construct the cursor and set the default values. More... | |
| boolean | onHitTest (float x, float y) |
| Hit test for cursor, always false. More... | |
| void | onDraw (Canvas canvas) |
| Draw the cursor. More... | |
| void | reposition (RectF rect) |
| Reposition the cursor on screen. More... | |
| void | cycleAlpha () |
| Cycle the alpha color of the cursor, makes the. 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 | |
| RectF | mPosition = new RectF() |
| RectF | mScaledPosition = new RectF() |
| int | mAlpha = 0 |
Private Attributes | |
| final Paint | mCursorPaint = new Paint() |
Static Private Attributes | |
| static final float | CURSOR_WIDTH = 2f |
Handles the cursor drawing on the canvas.
Definition at line 11 of file Cursor.java.
|
inline |
Construct the cursor and set the default values.
Definition at line 21 of file Cursor.java.
References Color, and org.libreoffice.canvas.Cursor.mCursorPaint.
|
inline |
Cycle the alpha color of the cursor, makes the.
Definition at line 53 of file Cursor.java.
References org.libreoffice.canvas.Cursor.mCursorPaint.
|
inline |
Draw the cursor.
Definition at line 38 of file Cursor.java.
References org.libreoffice.canvas.Cursor.mCursorPaint, and org.libreoffice.canvas.Cursor.mScaledPosition.
|
inline |
Hit test for cursor, always false.
Definition at line 30 of file Cursor.java.
|
inline |
Reposition the cursor on screen.
Definition at line 45 of file Cursor.java.
References org.libreoffice.canvas.Cursor.CURSOR_WIDTH, and org.libreoffice.canvas.Cursor.mScaledPosition.
Referenced by org.libreoffice.overlay.DocumentOverlayView.repositionWithViewport().
|
staticprivate |
Definition at line 12 of file Cursor.java.
Referenced by org.libreoffice.canvas.Cursor.reposition().
| int org.libreoffice.canvas.Cursor.mAlpha = 0 |
Definition at line 16 of file Cursor.java.
|
private |
Definition at line 13 of file Cursor.java.
Referenced by org.libreoffice.canvas.Cursor.Cursor(), org.libreoffice.canvas.Cursor.cycleAlpha(), and org.libreoffice.canvas.Cursor.onDraw().
| RectF org.libreoffice.canvas.Cursor.mPosition = new RectF() |
| RectF org.libreoffice.canvas.Cursor.mScaledPosition = new RectF() |
Definition at line 15 of file Cursor.java.
Referenced by org.libreoffice.canvas.Cursor.onDraw(), and org.libreoffice.canvas.Cursor.reposition().