|
LibreOffice Module android (master) 1
|
CalcSelectionBox is the selection frame for the current highlighted area/cells in Calc. More...
Public Member Functions | |
| CalcSelectionBox (LibreOfficeMainActivity context) | |
| void | dragStart (PointF point) |
| Start of a touch and drag action on the box. More... | |
| void | dragEnd (PointF point) |
| End of a touch and drag action on the box. More... | |
| void | dragging (PointF point) |
| Box has been dragged. More... | |
| boolean | onHitTest (float x, float y) |
| void | onDraw (Canvas canvas) |
| void | reposition (RectF rect) |
| boolean | contains (float x, float y) |
| Hit test. 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 | mDocumentPosition |
Private Member Functions | |
| void | signalHandleMove (float newX, float newY) |
| Signal to move the handle to a new position to LO. More... | |
Private Attributes | |
| LibreOfficeMainActivity | mContext |
| RectF | mScreenPosition |
| long | mLastTime = 0 |
| Paint | mPaint |
| Paint | mCirclePaint |
Static Private Attributes | |
| static final long | MINIMUM_HANDLE_UPDATE_TIME = 50 * 1000000 |
| static final float | CIRCLE_HANDLE_RADIUS = 8f |
CalcSelectionBox is the selection frame for the current highlighted area/cells in Calc.
Definition at line 18 of file CalcSelectionBox.java.
|
inline |
Definition at line 30 of file CalcSelectionBox.java.
References Color, org.libreoffice.canvas.CalcSelectionBox.mCirclePaint, org.libreoffice.canvas.CalcSelectionBox.mContext, org.libreoffice.canvas.CalcSelectionBox.mDocumentPosition, org.libreoffice.canvas.CalcSelectionBox.mPaint, org.libreoffice.canvas.CalcSelectionBox.mScreenPosition, and Paint.
|
inline |
Hit test.
Return true if the element was hit. Directly return false if the element is invisible.
Reimplemented from org.libreoffice.canvas.CommonCanvasElement.
Definition at line 98 of file CalcSelectionBox.java.
References org.libreoffice.canvas.CalcSelectionBox.CIRCLE_HANDLE_RADIUS, org.libreoffice.canvas.CommonCanvasElement.isVisible(), org.libreoffice.canvas.CalcSelectionBox.mScreenPosition, org.libreoffice.canvas.CalcSelectionBox.onHitTest(), x, and y.
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
inline |
End of a touch and drag action on the box.
Definition at line 51 of file CalcSelectionBox.java.
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
inline |
Box has been dragged.
Definition at line 56 of file CalcSelectionBox.java.
References org.libreoffice.canvas.CalcSelectionBox.MINIMUM_HANDLE_UPDATE_TIME, org.libreoffice.canvas.CalcSelectionBox.mLastTime, point(), org.libreoffice.canvas.CalcSelectionBox.signalHandleMove(), and System.
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
inline |
Start of a touch and drag action on the box.
Definition at line 46 of file CalcSelectionBox.java.
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
inline |
|
inline |
Definition at line 82 of file CalcSelectionBox.java.
References org.libreoffice.canvas.CalcSelectionBox.mScreenPosition, x, and y.
Referenced by org.libreoffice.canvas.CalcSelectionBox.contains().
|
inline |
Definition at line 93 of file CalcSelectionBox.java.
References org.libreoffice.canvas.CalcSelectionBox.mScreenPosition.
Referenced by org.libreoffice.overlay.DocumentOverlayView.repositionWithViewport().
|
inlineprivate |
Signal to move the handle to a new position to LO.
Definition at line 67 of file CalcSelectionBox.java.
References org.libreoffice.canvas.SelectionHandle.HandleType.END, org.libreoffice.LibreOfficeMainActivity.getLayerClient(), org.mozilla.gecko.gfx.ImmutableViewportMetrics.getOrigin(), org.mozilla.gecko.gfx.GeckoLayerClient.getViewportMetrics(), org.libreoffice.canvas.CalcSelectionBox.mContext, org.libreoffice.canvas.CalcSelectionBox.mDocumentPosition, org.libreoffice.LOKitShell.sendChangeHandlePositionEvent(), org.libreoffice.canvas.SelectionHandle.HandleType.START, and org.mozilla.gecko.gfx.ImmutableViewportMetrics.zoomFactor.
Referenced by org.libreoffice.canvas.CalcSelectionBox.dragging().
|
staticprivate |
Definition at line 20 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.contains(), and org.libreoffice.canvas.CalcSelectionBox.onDraw().
|
private |
Definition at line 28 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.CalcSelectionBox(), and org.libreoffice.canvas.CalcSelectionBox.onDraw().
|
private |
Definition at line 24 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.CalcSelectionBox(), and org.libreoffice.canvas.CalcSelectionBox.signalHandleMove().
| RectF org.libreoffice.canvas.CalcSelectionBox.mDocumentPosition |
Definition at line 22 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.CalcSelectionBox(), org.libreoffice.overlay.DocumentOverlayView.repositionWithViewport(), org.libreoffice.overlay.DocumentOverlayView.showAdjustLengthLine(), org.libreoffice.overlay.DocumentOverlayView.showCellSelection(), and org.libreoffice.canvas.CalcSelectionBox.signalHandleMove().
|
staticprivate |
Definition at line 19 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.dragging().
|
private |
Definition at line 26 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.dragging().
|
private |
Definition at line 27 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.CalcSelectionBox(), and org.libreoffice.canvas.CalcSelectionBox.onDraw().
|
private |
Definition at line 25 of file CalcSelectionBox.java.
Referenced by org.libreoffice.canvas.CalcSelectionBox.CalcSelectionBox(), org.libreoffice.canvas.CalcSelectionBox.contains(), org.libreoffice.canvas.CalcSelectionBox.onDraw(), org.libreoffice.canvas.CalcSelectionBox.onHitTest(), and org.libreoffice.canvas.CalcSelectionBox.reposition().