public class XAxisRenderer extends AxisRenderer
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.RectF |
mGridClippingRect |
protected android.graphics.RectF |
mLimitLineClippingRect |
protected float[] |
mRenderGridLinesBuffer |
protected android.graphics.Path |
mRenderGridLinesPath |
protected float[] |
mRenderLimitLinesBuffer |
protected XAxis |
mXAxis |
mAxis, mAxisLabelPaint, mAxisLinePaint, mGridPaint, mLimitLinePaint, mTransmViewPortHandler| Constructor and Description |
|---|
XAxisRenderer(ViewPortHandler viewPortHandler,
XAxis xAxis,
Transformer trans) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeAxis(float min,
float max,
boolean inverted)
Computes the axis values.
|
protected void |
computeAxisValues(float min,
float max)
Sets up 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 |
drawLabel(android.graphics.Canvas c,
java.lang.String formattedLabel,
float x,
float y,
MPPointF anchor,
float angleDegrees) |
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 |
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.
|
protected void |
setupGridPaint() |
getPaintAxisLabels, getPaintAxisLine, getPaintGrid, getTransformerprotected XAxis mXAxis
protected android.graphics.Path mRenderGridLinesPath
protected float[] mRenderGridLinesBuffer
protected android.graphics.RectF mGridClippingRect
protected float[] mRenderLimitLinesBuffer
protected android.graphics.RectF mLimitLineClippingRect
public XAxisRenderer(ViewPortHandler viewPortHandler, XAxis xAxis, Transformer trans)
protected void setupGridPaint()
public void computeAxis(float min,
float max,
boolean inverted)
AxisRenderercomputeAxis in class AxisRenderermin - - the minimum value in the data object for this axismax - - the maximum value in the data object for this axisprotected void computeAxisValues(float min,
float max)
AxisRenderercomputeAxisValues in class AxisRendererprotected void computeSize()
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,
MPPointF anchor)
pos - protected void drawLabel(android.graphics.Canvas c,
java.lang.String formattedLabel,
float x,
float y,
MPPointF anchor,
float angleDegrees)
public void renderGridLines(android.graphics.Canvas c)
AxisRendererrenderGridLines in class AxisRendererpublic android.graphics.RectF getGridClippingRect()
protected void drawGridLine(android.graphics.Canvas c,
float x,
float y,
android.graphics.Path gridLinePath)
c - x - y - gridLinePath - public 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)