public class YAxisRenderer extends AxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected YAxis |
mYAxis |
protected android.graphics.Paint |
mZeroLinePaint |
mAxisLabelPaint, mAxisLinePaint, mGridPaint, mLimitLinePaint, mTransmMaxX, mMinX, mViewPortHandler| Constructor and Description |
|---|
YAxisRenderer(ViewPortHandler viewPortHandler,
YAxis yAxis,
Transformer trans) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeAxis(float yMin,
float yMax)
Computes the axis values.
|
protected void |
computeAxisValues(float min,
float max)
Sets up the y-axis labels.
|
protected void |
drawYLabels(android.graphics.Canvas c,
float fixedPosition,
float[] positions,
float offset)
draws the y-labels on the specified x-position
|
protected void |
drawZeroLine(android.graphics.Canvas c,
float x1,
float x2,
float y1,
float y2)
Draws the zero line at the specified position.
|
void |
renderAxisLabels(android.graphics.Canvas c)
draws the y-axis labels to the screen
|
void |
renderAxisLine(android.graphics.Canvas c)
Draws the line that goes alongside the axis.
|
void |
renderGridLines(android.graphics.Canvas c)
Draws the grid lines belonging to the axis.
|
void |
renderLimitLines(android.graphics.Canvas c)
Draws the LimitLines associated with this axis to the screen.
|
getPaintAxisLabels, getPaintAxisLine, getPaintGrid, getTransformercalcXBounds, fitsBoundsprotected YAxis mYAxis
protected android.graphics.Paint mZeroLinePaint
public YAxisRenderer(ViewPortHandler viewPortHandler, YAxis yAxis, Transformer trans)
public void computeAxis(float yMin,
float yMax)
yMin - - the minimum y-value in the data object for this axisyMax - - the maximum y-value in the data object for this axisprotected void computeAxisValues(float min,
float max)
public void renderAxisLabels(android.graphics.Canvas c)
renderAxisLabels in class AxisRendererpublic void renderAxisLine(android.graphics.Canvas c)
AxisRendererrenderAxisLine in class AxisRendererprotected void drawYLabels(android.graphics.Canvas c,
float fixedPosition,
float[] positions,
float offset)
fixedPosition - positions - public void renderGridLines(android.graphics.Canvas c)
AxisRendererrenderGridLines in class AxisRendererprotected void drawZeroLine(android.graphics.Canvas c,
float x1,
float x2,
float y1,
float y2)
c - x1 - x2 - y1 - y2 - public void renderLimitLines(android.graphics.Canvas c)
renderLimitLines in class AxisRendererc -