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

Handles the cursor drawing on the canvas. More...

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

Public Member Functions

 Cursor ()
 Construct the cursor and set the default values. More...
 
boolean onHitTest (float x, float y)
 Hit test for cursor, always false. More...
 
void onDraw (Canvas canvas)
 Draw the cursor. More...
 
void reposition (RectF rect)
 Reposition the cursor on screen. More...
 
void cycleAlpha ()
 Cycle the alpha color of the cursor, makes the. 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 mPosition = new RectF()
 
RectF mScaledPosition = new RectF()
 
int mAlpha = 0
 

Private Attributes

final Paint mCursorPaint = new Paint()
 

Static Private Attributes

static final float CURSOR_WIDTH = 2f
 

Detailed Description

Handles the cursor drawing on the canvas.

Definition at line 11 of file Cursor.java.

Constructor & Destructor Documentation

◆ Cursor()

org.libreoffice.canvas.Cursor.Cursor ( )
inline

Construct the cursor and set the default values.

Definition at line 21 of file Cursor.java.

References Color, and org.libreoffice.canvas.Cursor.mCursorPaint.

Member Function Documentation

◆ cycleAlpha()

void org.libreoffice.canvas.Cursor.cycleAlpha ( )
inline

Cycle the alpha color of the cursor, makes the.

Definition at line 53 of file Cursor.java.

References org.libreoffice.canvas.Cursor.mCursorPaint.

◆ onDraw()

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

Draw the cursor.

Definition at line 38 of file Cursor.java.

References org.libreoffice.canvas.Cursor.mCursorPaint, and org.libreoffice.canvas.Cursor.mScaledPosition.

◆ onHitTest()

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

Hit test for cursor, always false.

Definition at line 30 of file Cursor.java.

◆ reposition()

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

Member Data Documentation

◆ CURSOR_WIDTH

final float org.libreoffice.canvas.Cursor.CURSOR_WIDTH = 2f
staticprivate

Definition at line 12 of file Cursor.java.

Referenced by org.libreoffice.canvas.Cursor.reposition().

◆ mAlpha

int org.libreoffice.canvas.Cursor.mAlpha = 0

Definition at line 16 of file Cursor.java.

◆ mCursorPaint

final Paint org.libreoffice.canvas.Cursor.mCursorPaint = new Paint()
private

◆ mPosition

RectF org.libreoffice.canvas.Cursor.mPosition = new RectF()

◆ mScaledPosition

RectF org.libreoffice.canvas.Cursor.mScaledPosition = new RectF()

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