LibreOffice Module android (master) 1
Public Member Functions | Private Attributes | List of all members
org.libreoffice.canvas.CalcHeaderCell Class Reference
Inheritance diagram for org.libreoffice.canvas.CalcHeaderCell:
[legend]
Collaboration diagram for org.libreoffice.canvas.CalcHeaderCell:
[legend]

Public Member Functions

 CalcHeaderCell (float left, float top, float width, float height, String text, boolean selected)
 
boolean onHitTest (float x, float y)
 Implement hit test here. More...
 
void onDraw (Canvas canvas)
 Called inside draw if the element is visible. 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 Attributes

TextPaint mTextPaint = new TextPaint()
 
Paint mBgPaint = new Paint()
 
RectF mBounds
 
String mText
 

Detailed Description

Definition at line 10 of file CalcHeaderCell.java.

Constructor & Destructor Documentation

◆ CalcHeaderCell()

org.libreoffice.canvas.CalcHeaderCell.CalcHeaderCell ( float  left,
float  top,
float  width,
float  height,
String  text,
boolean  selected 
)
inline

Member Function Documentation

◆ onDraw()

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

Called inside draw if the element is visible.

Override this method to draw the element on the canvas.

Parameters
canvas- the canvas

Definition at line 50 of file CalcHeaderCell.java.

References org.libreoffice.canvas.CalcHeaderCell.mBgPaint, org.libreoffice.canvas.CalcHeaderCell.mBounds, org.libreoffice.canvas.CalcHeaderCell.mText, and org.libreoffice.canvas.CalcHeaderCell.mTextPaint.

Referenced by org.libreoffice.overlay.CalcHeadersView.updateHeaders().

◆ onHitTest()

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

Implement hit test here.

Parameters
x- x coordinate of the
y- y coordinate of the

Definition at line 39 of file CalcHeaderCell.java.

Member Data Documentation

◆ mBgPaint

Paint org.libreoffice.canvas.CalcHeaderCell.mBgPaint = new Paint()
private

◆ mBounds

RectF org.libreoffice.canvas.CalcHeaderCell.mBounds
private

◆ mText

String org.libreoffice.canvas.CalcHeaderCell.mText
private

◆ mTextPaint

TextPaint org.libreoffice.canvas.CalcHeaderCell.mTextPaint = new TextPaint()
private

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