LibreOffice Module android (master) 1
|
Selection handle is a common class for "start", "middle" and "end" types of selection handles. More...
Classes | |
enum | HandleType |
Public Member Functions | |
SelectionHandle (LibreOfficeMainActivity context, Bitmap bitmap) | |
void | dragStart (PointF point) |
Start of a touch and drag action on the handle. More... | |
void | dragEnd (PointF point) |
End of a touch and drag action on the handle. More... | |
void | dragging (PointF point) |
Handle has been dragged. More... | |
abstract HandleType | getHandleType () |
Public Member Functions inherited from org.libreoffice.canvas.BitmapHandle | |
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... | |
Private Member Functions | |
void | signalHandleMove (float newX, float newY) |
Signal to move the handle to a new position to LO. More... | |
Private Attributes | |
final PointF | mDragStartPoint = new PointF() |
final PointF | mDragDocumentPosition = new PointF() |
long | mLastTime = 0 |
LibreOfficeMainActivity | mContext |
Static Private Attributes | |
static final long | MINIMUM_HANDLE_UPDATE_TIME = 50 * 1000000 |
Additional Inherited Members | |
Public Attributes inherited from org.libreoffice.canvas.BitmapHandle | |
final RectF | mDocumentPosition |
Selection handle is a common class for "start", "middle" and "end" types of selection handles.
Definition at line 14 of file SelectionHandle.java.
|
inline |
Definition at line 23 of file SelectionHandle.java.
References org.libreoffice.canvas.SelectionHandle.mContext.
|
inline |
End of a touch and drag action on the handle.
Definition at line 41 of file SelectionHandle.java.
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
inline |
Handle has been dragged.
Definition at line 47 of file SelectionHandle.java.
References org.libreoffice.canvas.SelectionHandle.MINIMUM_HANDLE_UPDATE_TIME, org.libreoffice.canvas.SelectionHandle.mLastTime, point(), org.libreoffice.canvas.SelectionHandle.signalHandleMove(), and System.
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
inline |
Start of a touch and drag action on the handle.
Definition at line 31 of file SelectionHandle.java.
References org.libreoffice.canvas.BitmapHandle.mDocumentPosition, org.libreoffice.canvas.SelectionHandle.mDragDocumentPosition, org.libreoffice.canvas.SelectionHandle.mDragStartPoint, and point().
Referenced by org.libreoffice.overlay.DocumentOverlayView.onTouch().
|
abstract |
|
inlineprivate |
Signal to move the handle to a new position to LO.
Definition at line 58 of file SelectionHandle.java.
References org.libreoffice.canvas.SelectionHandle.getHandleType(), org.libreoffice.LibreOfficeMainActivity.getLayerClient(), org.mozilla.gecko.gfx.GeckoLayerClient.getViewportMetrics(), org.libreoffice.canvas.SelectionHandle.mContext, org.libreoffice.canvas.SelectionHandle.mDragDocumentPosition, org.libreoffice.canvas.SelectionHandle.mDragStartPoint, org.libreoffice.LOKitShell.sendChangeHandlePositionEvent(), and org.mozilla.gecko.gfx.ImmutableViewportMetrics.zoomFactor.
Referenced by org.libreoffice.canvas.SelectionHandle.dragging().
|
private |
Definition at line 21 of file SelectionHandle.java.
Referenced by org.libreoffice.canvas.SelectionHandle.SelectionHandle(), and org.libreoffice.canvas.SelectionHandle.signalHandleMove().
|
private |
Definition at line 18 of file SelectionHandle.java.
Referenced by org.libreoffice.canvas.SelectionHandle.dragStart(), and org.libreoffice.canvas.SelectionHandle.signalHandleMove().
|
private |
Definition at line 17 of file SelectionHandle.java.
Referenced by org.libreoffice.canvas.SelectionHandle.dragStart(), and org.libreoffice.canvas.SelectionHandle.signalHandleMove().
|
staticprivate |
Definition at line 15 of file SelectionHandle.java.
Referenced by org.libreoffice.canvas.SelectionHandle.dragging().
|
private |
Definition at line 19 of file SelectionHandle.java.
Referenced by org.libreoffice.canvas.SelectionHandle.dragging().