public class YAxisRendererHorizontalBarChart extends YAxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.Path |
mDrawZeroLinePathBuffer |
protected float[] |
mRenderLimitLinesBuffer |
protected android.graphics.Path |
mRenderLimitLinesPathBuffer |
mDrawZeroLinePath, mGetTransformedPositionsBuffer, mGridClippingRect, mLimitLineClippingRect, mRenderGridLinesPath, mRenderLimitLines, mYAxis, mZeroLineClippingRect, mZeroLinePaintmAxis, mAxisLabelPaint, mAxisLinePaint, mGridPaint, mLimitLinePaint, mTransmViewPortHandler| Constructor and Description |
|---|
YAxisRendererHorizontalBarChart(ViewPortHandler viewPortHandler,
YAxis yAxis,
Transformer trans) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeAxis(float yMin,
float yMax,
boolean inverted)
Computes the axis values.
|
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 |
renderLimitLines(android.graphics.Canvas c)
Draws the LimitLines associated with this axis to the screen.
|
renderGridLinescomputeAxisValues, getPaintAxisLabels, getPaintAxisLine, getPaintGrid, getTransformerprotected android.graphics.Path mDrawZeroLinePathBuffer
protected android.graphics.Path mRenderLimitLinesPathBuffer
protected float[] mRenderLimitLinesBuffer
public YAxisRendererHorizontalBarChart(ViewPortHandler viewPortHandler, YAxis yAxis, Transformer trans)
public void computeAxis(float yMin,
float yMax,
boolean inverted)
computeAxis in class AxisRendereryMin - - the minimum y-value in the data object for this axisyMax - - the maximum y-value in the data object for this axispublic void renderAxisLabels(android.graphics.Canvas c)
renderAxisLabels in class YAxisRendererpublic void renderAxisLine(android.graphics.Canvas c)
AxisRendererrenderAxisLine in class YAxisRendererprotected void drawYLabels(android.graphics.Canvas c,
float fixedPosition,
float[] positions,
float offset)
drawYLabels in class YAxisRendererfixedPosition - positions - protected float[] getTransformedPositions()
YAxisRenderergetTransformedPositions in class YAxisRendererpublic android.graphics.RectF getGridClippingRect()
getGridClippingRect in class YAxisRendererprotected android.graphics.Path linePath(android.graphics.Path p,
int i,
float[] positions)
YAxisRendererlinePath in class YAxisRendererprotected void drawZeroLine(android.graphics.Canvas c)
YAxisRendererdrawZeroLine in class YAxisRendererpublic void renderLimitLines(android.graphics.Canvas c)
renderLimitLines in class YAxisRendererc -