|
LibreOffice Module android (master) 1
|
Public Member Functions | |
| CalcHeaderCell (float left, float top, float width, float height, String text, boolean selected) | |
| boolean | onHitTest (float x, float y) |
| Implement hit test here. More... | |
| void | onDraw (Canvas canvas) |
| Called inside draw if the element is visible. 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... | |
Private Attributes | |
| TextPaint | mTextPaint = new TextPaint() |
| Paint | mBgPaint = new Paint() |
| RectF | mBounds |
| String | mText |
Definition at line 10 of file CalcHeaderCell.java.
|
inline |
Definition at line 16 of file CalcHeaderCell.java.
References Color, left, org.libreoffice.canvas.CalcHeaderCell.mBgPaint, org.libreoffice.canvas.CalcHeaderCell.mBounds, org.libreoffice.canvas.CalcHeaderCell.mText, org.libreoffice.canvas.CalcHeaderCell.mTextPaint, Style, text(), and top.
|
inline |
Called inside draw if the element is visible.
Override this method to draw the element on the canvas.
| canvas | - the canvas |
Definition at line 50 of file CalcHeaderCell.java.
References org.libreoffice.canvas.CalcHeaderCell.mBgPaint, org.libreoffice.canvas.CalcHeaderCell.mBounds, org.libreoffice.canvas.CalcHeaderCell.mText, and org.libreoffice.canvas.CalcHeaderCell.mTextPaint.
Referenced by org.libreoffice.overlay.CalcHeadersView.updateHeaders().
|
inline |
Implement hit test here.
| x | - x coordinate of the |
| y | - y coordinate of the |
Definition at line 39 of file CalcHeaderCell.java.
|
private |
Definition at line 12 of file CalcHeaderCell.java.
Referenced by org.libreoffice.canvas.CalcHeaderCell.CalcHeaderCell(), and org.libreoffice.canvas.CalcHeaderCell.onDraw().
|
private |
Definition at line 13 of file CalcHeaderCell.java.
Referenced by org.libreoffice.canvas.CalcHeaderCell.CalcHeaderCell(), and org.libreoffice.canvas.CalcHeaderCell.onDraw().
|
private |
Definition at line 14 of file CalcHeaderCell.java.
Referenced by org.libreoffice.canvas.CalcHeaderCell.CalcHeaderCell(), and org.libreoffice.canvas.CalcHeaderCell.onDraw().
|
private |
Definition at line 11 of file CalcHeaderCell.java.
Referenced by org.libreoffice.canvas.CalcHeaderCell.CalcHeaderCell(), and org.libreoffice.canvas.CalcHeaderCell.onDraw().