1package org.libreoffice.canvas;
3import android.graphics.Canvas;
4import android.graphics.Color;
5import android.graphics.Paint;
6import android.graphics.PointF;
7import android.graphics.RectF;
57 long currentTime =
System.nanoTime();
70 PointF origin = viewportMetrics.
getOrigin();
72 PointF documentPoint =
new PointF((newX+origin.x)/zoom , (newY+origin.y)/zoom);
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()
CalcSelectionBox is the selection frame for the current highlighted area/cells in Calc.
static final long MINIMUM_HANDLE_UPDATE_TIME
CalcSelectionBox(LibreOfficeMainActivity context)
void dragEnd(PointF point)
End of a touch and drag action on the box.
static final float CIRCLE_HANDLE_RADIUS
void signalHandleMove(float newX, float newY)
Signal to move the handle to a new position to LO.
void reposition(RectF rect)
void onDraw(Canvas canvas)
boolean onHitTest(float x, float y)
void dragging(PointF point)
Box has been dragged.
LibreOfficeMainActivity mContext
boolean contains(float x, float y)
Hit test.
void dragStart(PointF point)
Start of a touch and drag action on the box.
Common implementation to canvas elements.
boolean isVisible()
Is element visible?
Selection handle is a common class for "start", "middle" and "end" types of selection handles.
ImmutableViewportMetrics getViewportMetrics()
Implementation of PanZoomTarget.
ImmutableViewportMetrics are used to store the viewport metrics in way that we can access a version o...