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

Public Member Functions

 AdjustLengthLine (LibreOfficeMainActivity context, CalcHeadersView view, boolean isRow, float width, float height)
 
boolean onHitTest (float x, float y)
 
void onDraw (Canvas canvas)
 
void dragStart (PointF point)
 
void dragging (PointF point)
 
void dragEnd (PointF point)
 
void setScreenRect (RectF position)
 
- 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

LibreOfficeMainActivity mContext
 
CalcHeadersView mCalcHeadersView
 
boolean mIsRow
 
PointF mScreenPosition
 
float mWidth
 
float mHeight
 
Paint mPaint
 
PointF mStartScreenPosition
 
int mIndex
 

Static Private Attributes

static final float STROKE_WIDTH = 4f
 
static final float TOUCH_VICINITY_RADIUS = 24f
 

Detailed Description

Definition at line 21 of file AdjustLengthLine.java.

Constructor & Destructor Documentation

◆ AdjustLengthLine()

org.libreoffice.canvas.AdjustLengthLine.AdjustLengthLine ( LibreOfficeMainActivity  context,
CalcHeadersView  view,
boolean  isRow,
float  width,
float  height 
)
inline

Member Function Documentation

◆ dragEnd()

void org.libreoffice.canvas.AdjustLengthLine.dragEnd ( PointF  point)
inline

◆ dragging()

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

◆ dragStart()

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

◆ onDraw()

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

◆ onHitTest()

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

◆ setScreenRect()

void org.libreoffice.canvas.AdjustLengthLine.setScreenRect ( RectF  position)
inline

Member Data Documentation

◆ mCalcHeadersView

CalcHeadersView org.libreoffice.canvas.AdjustLengthLine.mCalcHeadersView
private

◆ mContext

LibreOfficeMainActivity org.libreoffice.canvas.AdjustLengthLine.mContext
private

◆ mHeight

float org.libreoffice.canvas.AdjustLengthLine.mHeight
private

◆ mIndex

int org.libreoffice.canvas.AdjustLengthLine.mIndex
private

◆ mIsRow

boolean org.libreoffice.canvas.AdjustLengthLine.mIsRow
private

◆ mPaint

Paint org.libreoffice.canvas.AdjustLengthLine.mPaint
private

◆ mScreenPosition

PointF org.libreoffice.canvas.AdjustLengthLine.mScreenPosition
private

◆ mStartScreenPosition

PointF org.libreoffice.canvas.AdjustLengthLine.mStartScreenPosition
private

◆ mWidth

float org.libreoffice.canvas.AdjustLengthLine.mWidth
private

◆ STROKE_WIDTH

final float org.libreoffice.canvas.AdjustLengthLine.STROKE_WIDTH = 4f
staticprivate

◆ TOUCH_VICINITY_RADIUS

final float org.libreoffice.canvas.AdjustLengthLine.TOUCH_VICINITY_RADIUS = 24f
staticprivate

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