1package org.libreoffice.canvas;
3import android.graphics.Bitmap;
4import android.graphics.PointF;
48 long currentTime =
System.nanoTime();
Common static LOKit functions, functions to send events.
static void sendChangeHandlePositionEvent(SelectionHandle.HandleType handleType, PointF documentCoordinate)
Send change handle position event to LOKitThread.
Main activity of the LibreOffice App.
GeckoLayerClient getLayerClient()
Bitmap handle canvas element is used to show a handle on the screen.
final RectF mDocumentPosition
Selection handle is a common class for "start", "middle" and "end" types of selection handles.
void dragEnd(PointF point)
End of a touch and drag action on the handle.
final PointF mDragStartPoint
void dragging(PointF point)
Handle has been dragged.
abstract HandleType getHandleType()
static final long MINIMUM_HANDLE_UPDATE_TIME
SelectionHandle(LibreOfficeMainActivity context, Bitmap bitmap)
LibreOfficeMainActivity mContext
void dragStart(PointF point)
Start of a touch and drag action on the handle.
final PointF mDragDocumentPosition
void signalHandleMove(float newX, float newY)
Signal to move the handle to a new position to LO.
ImmutableViewportMetrics getViewportMetrics()
Implementation of PanZoomTarget.
ImmutableViewportMetrics are used to store the viewport metrics in way that we can access a version o...