public class YAxisRenderer extends AxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected YAxis |
mYAxis |
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
|
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
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 AxisRendererpublic void renderLimitLines(android.graphics.Canvas c)
renderLimitLines in class AxisRendererc -