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

Selection handle is a common class for "start", "middle" and "end" types of selection handles. More...

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

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
 

Detailed Description

Selection handle is a common class for "start", "middle" and "end" types of selection handles.

Definition at line 14 of file SelectionHandle.java.

Constructor & Destructor Documentation

◆ SelectionHandle()

org.libreoffice.canvas.SelectionHandle.SelectionHandle ( LibreOfficeMainActivity  context,
Bitmap  bitmap 
)
inline

Member Function Documentation

◆ dragEnd()

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

◆ dragging()

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

◆ dragStart()

void org.libreoffice.canvas.SelectionHandle.dragStart ( PointF  point)
inline

◆ getHandleType()

abstract HandleType org.libreoffice.canvas.SelectionHandle.getHandleType ( )
abstract

◆ signalHandleMove()

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

Member Data Documentation

◆ mContext

LibreOfficeMainActivity org.libreoffice.canvas.SelectionHandle.mContext
private

◆ mDragDocumentPosition

final PointF org.libreoffice.canvas.SelectionHandle.mDragDocumentPosition = new PointF()
private

◆ mDragStartPoint

final PointF org.libreoffice.canvas.SelectionHandle.mDragStartPoint = new PointF()
private

◆ MINIMUM_HANDLE_UPDATE_TIME

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

◆ mLastTime

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

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