public class XAxisRenderer extends AxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected XAxis |
mXAxis |
mAxisLabelPaint, mAxisLinePaint, mGridPaint, mLimitLinePaint, mTransmMaxX, mMinX, mViewPortHandler| Constructor and Description |
|---|
XAxisRenderer(ViewPortHandler viewPortHandler,
XAxis xAxis,
Transformer trans) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeAxis(float xValAverageLength,
java.util.List<java.lang.String> xValues) |
protected void |
drawLabel(android.graphics.Canvas c,
java.lang.String label,
int xIndex,
float x,
float y,
android.graphics.PointF anchor,
float angleDegrees) |
protected void |
drawLabels(android.graphics.Canvas c,
float pos,
android.graphics.PointF anchor)
draws the x-labels on the specified y-position
|
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 |
renderGridLines(android.graphics.Canvas c)
Draws the grid lines belonging to the axis.
|
void |
renderLimitLineLabel(android.graphics.Canvas c,
LimitLine limitLine,
float[] position,
float yOffset) |
void |
renderLimitLineLine(android.graphics.Canvas c,
LimitLine limitLine,
float[] position) |
void |
renderLimitLines(android.graphics.Canvas c)
Draws the LimitLines associated with this axis to the screen.
|
getPaintAxisLabels, getPaintAxisLine, getPaintGrid, getTransformercalcXBounds, fitsBoundsprotected XAxis mXAxis
public XAxisRenderer(ViewPortHandler viewPortHandler, XAxis xAxis, Transformer trans)
public void computeAxis(float xValAverageLength,
java.util.List<java.lang.String> xValues)
public void renderAxisLabels(android.graphics.Canvas c)
AxisRendererrenderAxisLabels in class AxisRendererpublic void renderAxisLine(android.graphics.Canvas c)
AxisRendererrenderAxisLine in class AxisRendererprotected void drawLabels(android.graphics.Canvas c,
float pos,
android.graphics.PointF anchor)
pos - protected void drawLabel(android.graphics.Canvas c,
java.lang.String label,
int xIndex,
float x,
float y,
android.graphics.PointF anchor,
float angleDegrees)
public void renderGridLines(android.graphics.Canvas c)
AxisRendererrenderGridLines in class AxisRendererpublic void renderLimitLines(android.graphics.Canvas c)
renderLimitLines in class AxisRendererc - public void renderLimitLineLine(android.graphics.Canvas c,
LimitLine limitLine,
float[] position)
public void renderLimitLineLabel(android.graphics.Canvas c,
LimitLine limitLine,
float[] position,
float yOffset)