public abstract class AxisRenderer extends Renderer
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Paint |
mAxisLabelPaint
paint for the x-label values
|
protected android.graphics.Paint |
mAxisLinePaint
paint for the line surrounding the chart
|
protected android.graphics.Paint |
mGridPaint
paint object for the grid lines
|
protected android.graphics.Paint |
mLimitLinePaint
paint used for the limit lines
|
protected Transformer |
mTrans |
mMaxX, mMinX, mViewPortHandler| Constructor and Description |
|---|
AxisRenderer(ViewPortHandler viewPortHandler,
Transformer trans) |
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Paint |
getPaintAxisLabels()
Returns the Paint object used for drawing the axis (labels).
|
android.graphics.Paint |
getPaintAxisLine()
Returns the Paint object that is used for drawing the axis-line that goes
alongside the axis.
|
android.graphics.Paint |
getPaintGrid()
Returns the Paint object that is used for drawing the grid-lines of the
axis.
|
Transformer |
getTransformer()
Returns the Transformer object used for transforming the axis values.
|
abstract void |
renderAxisLabels(android.graphics.Canvas c)
Draws the axis labels to the screen.
|
abstract void |
renderAxisLine(android.graphics.Canvas c)
Draws the line that goes alongside the axis.
|
abstract void |
renderGridLines(android.graphics.Canvas c)
Draws the grid lines belonging to the axis.
|
abstract void |
renderLimitLines(android.graphics.Canvas c)
Draws the LimitLines associated with this axis to the screen.
|
calcXBounds, fitsBoundsprotected Transformer mTrans
protected android.graphics.Paint mGridPaint
protected android.graphics.Paint mAxisLabelPaint
protected android.graphics.Paint mAxisLinePaint
protected android.graphics.Paint mLimitLinePaint
public AxisRenderer(ViewPortHandler viewPortHandler, Transformer trans)
public android.graphics.Paint getPaintAxisLabels()
public android.graphics.Paint getPaintGrid()
public android.graphics.Paint getPaintAxisLine()
public Transformer getTransformer()
public abstract void renderAxisLabels(android.graphics.Canvas c)
c - public abstract void renderGridLines(android.graphics.Canvas c)
c - public abstract void renderAxisLine(android.graphics.Canvas c)
c - public abstract void renderLimitLines(android.graphics.Canvas c)
c -