LibreOffice Module android (master) 1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.libreoffice.canvas.CalcSelectionBox Class Reference

CalcSelectionBox is the selection frame for the current highlighted area/cells in Calc. More...

Inheritance diagram for org.libreoffice.canvas.CalcSelectionBox:
[legend]
Collaboration diagram for org.libreoffice.canvas.CalcSelectionBox:
[legend]

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
 

Detailed Description

CalcSelectionBox is the selection frame for the current highlighted area/cells in Calc.

Definition at line 18 of file CalcSelectionBox.java.

Constructor & Destructor Documentation

◆ CalcSelectionBox()

org.libreoffice.canvas.CalcSelectionBox.CalcSelectionBox ( LibreOfficeMainActivity  context)
inline

Member Function Documentation

◆ contains()

boolean org.libreoffice.canvas.CalcSelectionBox.contains ( float  x,
float  y 
)
inline

◆ dragEnd()

void org.libreoffice.canvas.CalcSelectionBox.dragEnd ( PointF  point)
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().

◆ dragging()

void org.libreoffice.canvas.CalcSelectionBox.dragging ( PointF  point)
inline

◆ dragStart()

void org.libreoffice.canvas.CalcSelectionBox.dragStart ( PointF  point)
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().

◆ onDraw()

void org.libreoffice.canvas.CalcSelectionBox.onDraw ( Canvas  canvas)
inline

◆ onHitTest()

boolean org.libreoffice.canvas.CalcSelectionBox.onHitTest ( float  x,
float  y 
)
inline

◆ reposition()

void org.libreoffice.canvas.CalcSelectionBox.reposition ( RectF  rect)
inline

◆ signalHandleMove()

void org.libreoffice.canvas.CalcSelectionBox.signalHandleMove ( float  newX,
float  newY 
)
inlineprivate

Member Data Documentation

◆ CIRCLE_HANDLE_RADIUS

final float org.libreoffice.canvas.CalcSelectionBox.CIRCLE_HANDLE_RADIUS = 8f
staticprivate

◆ mCirclePaint

Paint org.libreoffice.canvas.CalcSelectionBox.mCirclePaint
private

◆ mContext

LibreOfficeMainActivity org.libreoffice.canvas.CalcSelectionBox.mContext
private

◆ mDocumentPosition

RectF org.libreoffice.canvas.CalcSelectionBox.mDocumentPosition

◆ MINIMUM_HANDLE_UPDATE_TIME

final long org.libreoffice.canvas.CalcSelectionBox.MINIMUM_HANDLE_UPDATE_TIME = 50 * 1000000
staticprivate

◆ mLastTime

long org.libreoffice.canvas.CalcSelectionBox.mLastTime = 0
private

◆ mPaint

Paint org.libreoffice.canvas.CalcSelectionBox.mPaint
private

◆ mScreenPosition

RectF org.libreoffice.canvas.CalcSelectionBox.mScreenPosition
private

The documentation for this class was generated from the following file: