public class XAxisRendererHorizontalBarChart extends XAxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected BarChart |
mChart |
protected android.graphics.Path |
mRenderLimitLinesPathBuffer |
mGridClippingRect, mLimitLineClippingRect, mRenderGridLinesBuffer, mRenderGridLinesPath, mRenderLimitLinesBuffer, mXAxismAxis, mAxisLabelPaint, mAxisLinePaint, mGridPaint, mLimitLinePaint, mTransmViewPortHandler| Constructor and Description |
|---|
XAxisRendererHorizontalBarChart(ViewPortHandler viewPortHandler,
XAxis xAxis,
Transformer trans,
BarChart chart) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeAxis(float min,
float max,
boolean inverted)
Computes the axis values.
|
protected void |
computeSize() |
protected void |
drawGridLine(android.graphics.Canvas c,
float x,
float y,
android.graphics.Path gridLinePath)
Draws the grid line at the specified position using the provided path.
|
protected void |
drawLabels(android.graphics.Canvas c,
float pos,
MPPointF anchor)
draws the x-labels on the specified y-position
|
android.graphics.RectF |
getGridClippingRect() |
void |
renderAxisLabels(android.graphics.Canvas c)
Draws the 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.
|
computeAxisValues, drawLabel, renderGridLines, renderLimitLineLabel, renderLimitLineLine, setupGridPaintgetPaintAxisLabels, getPaintAxisLine, getPaintGrid, getTransformerprotected BarChart mChart
protected android.graphics.Path mRenderLimitLinesPathBuffer
public XAxisRendererHorizontalBarChart(ViewPortHandler viewPortHandler, XAxis xAxis, Transformer trans, BarChart chart)
public void computeAxis(float min,
float max,
boolean inverted)
AxisRenderercomputeAxis in class XAxisRenderermin - - the minimum value in the data object for this axismax - - the maximum value in the data object for this axisprotected void computeSize()
computeSize in class XAxisRendererpublic void renderAxisLabels(android.graphics.Canvas c)
AxisRendererrenderAxisLabels in class XAxisRendererprotected void drawLabels(android.graphics.Canvas c,
float pos,
MPPointF anchor)
XAxisRendererdrawLabels in class XAxisRendererpublic android.graphics.RectF getGridClippingRect()
getGridClippingRect in class XAxisRendererprotected void drawGridLine(android.graphics.Canvas c,
float x,
float y,
android.graphics.Path gridLinePath)
XAxisRendererdrawGridLine in class XAxisRendererpublic void renderAxisLine(android.graphics.Canvas c)
AxisRendererrenderAxisLine in class XAxisRendererpublic void renderLimitLines(android.graphics.Canvas c)
renderLimitLines in class XAxisRendererc -