9package org.libreoffice.overlay;
11import android.graphics.RectF;
12import android.util.Log;
73 Log.e(
LOGTAG,
"Failed to initialize TextCursorLayer - CursorView is null");
Common static LOKit functions, functions to send events.
static Handler getMainHandler()
Main activity of the LibreOffice App.
Selection handle is a common class for "start", "middle" and "end" types of selection handles.
Document overlay view is responsible for showing the client drawn overlay elements like cursor,...
void showGraphicSelection()
Show the graphic selection on the view.
void setCalcHeadersController(CalcHeadersController calcHeadersController)
void showPageNumberRect()
Calculate and show page number according to current viewport position.
void showCellSelection(RectF cellCursorRect)
void changeSelections(List< RectF > selectionRects)
Change the text selection rectangles.
void hideHandle(SelectionHandle.HandleType type)
Hide the handle.
void showHandle(SelectionHandle.HandleType type)
Show the handle.
void changeCursorPosition(RectF position)
Change the cursor position.
void hideGraphicSelection()
Hide the graphic selection.
void showAdjustLengthLine(boolean isRow, final CalcHeadersView view)
void initialize(LayerView layerView)
Initialize the selection and cursor view.
void setPartPageRectangles(List< RectF > rectangles)
Set part page rectangles and initialize a page number rectangle object (canvas element).
void hideSelections()
Hide text selection rectangles.
void showSelections()
Show text selection rectangles.
void changeGraphicSelection(RectF rectangle)
Change the graphic selection rectangle.
void showCursor()
Show the cursor on the view.
void hideCursor()
Hide the cursor.
RectF getCurrentCursorPosition()
void repositionWithViewport(float x, float y, float zoom)
void positionHandle(SelectionHandle.HandleType type, RectF position)
Change the handle document position.
void showHeaderSelection(RectF rect)
void hidePageNumberRect()
Hide page number rectangle canvas element.
DocumentOverlayLayer responsibility is to get the changes to the viewport and report them to Document...
void draw(final RenderContext context)
The DocumentOverlay is an overlay over the document.
void changeGraphicSelection(final RectF rectangle)
Change the graphic selection rectangle to the input rectangle.
void changeSelections(final List< RectF > selections)
Change the list of selections.
static final String LOGTAG
void positionHandle(final SelectionHandle.HandleType type, final RectF rectangle)
Position the handle (of input type) position to the input rectangle.
void hideHandle(final SelectionHandle.HandleType type)
Hide the handle (of input type).
final long hidePageNumberRectDelayInMilliseconds
void hideSelections()
Hide selections on the overlay.
final DocumentOverlayLayer mDocumentOverlayLayer
void showHeaderSelection(final RectF cellCursorRect)
void showCellSelection(final RectF cellCursorRect)
void showHandle(final SelectionHandle.HandleType type)
Show the handle (of input type) on the overlay.
void showAdjustLengthLine(final boolean isRow, final CalcHeadersView view)
void showSelections()
Show selections on the overlay.
void showCursor()
Show the cursor at the defined cursor position on the overlay.
void showPageNumberRect()
Show the page number rectangle on the overlay.
RectF getCurrentCursorPosition()
void setCalcHeadersController(CalcHeadersController calcHeadersController)
void positionCursor(final RectF position)
Position the cursor to the input position on the overlay.
void hideGraphicSelection()
Hide the graphic selection.
void hidePageNumberRect()
Hide the page number rectangle on the overlay.
final DocumentOverlayView mDocumentOverlayView
void showGraphicSelection()
Show the graphic selection on the overlay.
void hideCursor()
Hide the cursor at the defined cursor position on the overlay.
DocumentOverlay(LibreOfficeMainActivity context, LayerView layerView)
void setPartPageRectangles(List< RectF > rectangles)
A view rendered by the layer compositor.
void addLayer(Layer layer)
static boolean fuzzyEquals(float a, float b)
def run(arg=None, arg2=-1)