public class YAxisRenderer extends AxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Path |
mDrawZeroLinePath |
protected float[] |
mGetTransformedPositionsBuffer |
protected android.graphics.RectF |
mGridClippingRect |
protected android.graphics.RectF |
mLimitLineClippingRect |
protected android.graphics.Path |
mRenderGridLinesPath |
protected android.graphics.Path |
mRenderLimitLines |
protected float[] |
mRenderLimitLinesBuffer |
protected YAxis |
mYAxis |
protected android.graphics.RectF |
mZeroLineClippingRect |
protected android.graphics.Paint |
mZeroLinePaint |
mAxis, mAxisLabelPaint, mAxisLinePaint, mGridPaint, mLimitLinePaint, mTransmViewPortHandler| Constructor and Description |
|---|
YAxisRenderer(ViewPortHandler viewPortHandler,
YAxis yAxis,
Transformer trans) |
| Modifier and Type | Method and Description |
|---|---|
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)
Draws the zero line.
|
android.graphics.RectF |
getGridClippingRect() |
protected float[] |
getTransformedPositions()
Transforms the values contained in the axis entries to screen pixels and returns them in form of a float array
of x- and y-coordinates.
|
protected android.graphics.Path |
linePath(android.graphics.Path p,
int i,
float[] positions)
Calculates the path for a grid line.
|
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.
|
computeAxis, computeAxisValues, getPaintAxisLabels, getPaintAxisLine, getPaintGrid, getTransformerprotected YAxis mYAxis
protected android.graphics.Paint mZeroLinePaint
protected android.graphics.Path mRenderGridLinesPath
protected android.graphics.RectF mGridClippingRect
protected float[] mGetTransformedPositionsBuffer
protected android.graphics.Path mDrawZeroLinePath
protected android.graphics.RectF mZeroLineClippingRect
protected android.graphics.Path mRenderLimitLines
protected float[] mRenderLimitLinesBuffer
protected android.graphics.RectF mLimitLineClippingRect
public YAxisRenderer(ViewPortHandler viewPortHandler, YAxis yAxis, Transformer trans)
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 android.graphics.RectF getGridClippingRect()
protected android.graphics.Path linePath(android.graphics.Path p,
int i,
float[] positions)
p - i - positions - protected float[] getTransformedPositions()
protected void drawZeroLine(android.graphics.Canvas c)
public void renderLimitLines(android.graphics.Canvas c)
renderLimitLines in class AxisRendererc -