-
public class XAxisRenderer extends AxisRenderer
-
-
Field Summary
Fields Modifier and Type Field Description private final RectFgridClippingRectprivate FloatArraylimitLineSegmentsBufferprivate <ERROR CLASS>paintGridprivate PaintpaintAxisLabelsprivate <ERROR CLASS>paintAxisLineprivate Transformertransformer
-
Constructor Summary
Constructors Constructor Description XAxisRenderer(ViewPortHandler viewPortHandler, XAxis xAxis, Transformer trans)
-
Method Summary
Modifier and Type Method Description RectFgetGridClippingRect()final FloatArraygetLimitLineSegmentsBuffer()final UnitsetLimitLineSegmentsBuffer(FloatArray limitLineSegmentsBuffer)final <ERROR CLASS>getPaintGrid()paint object for the grid lines final Unit)>setPaintGrid(<ERROR CLASS> paintGrid)final PaintgetPaintAxisLabels()paint for the x-label values final UnitsetPaintAxisLabels(Paint paintAxisLabels)final <ERROR CLASS>getPaintAxisLine()paint for the line surrounding the chart final Unit)>setPaintAxisLine(<ERROR CLASS> paintAxisLine)final TransformergetTransformer()transformer to transform values to screen pixels and return final UnitsetTransformer(Transformer transformer)transformer to transform values to screen pixels and return UnitcomputeAxis(Float min, Float max, Boolean inverted)Computes the axis values. UnitrenderAxisLabels(Canvas c)Draws the axis labels to the screen. UnitrenderAxisLine(Canvas c)Draws the line that goes alongside the axis. UnitrenderGridLines(Canvas c)Draws the grid lines belonging to the axis. final UnitrenderLimitLineLine(Canvas c, LimitLine limitLine, FloatArray position)UnitrenderLimitLines(Canvas c)Draws the LimitLines associated with this axis to the screen. final UnitrenderLimitLineLabel(Canvas c, LimitLine limitLine, FloatArray position, Float yOffset)-
-
Constructor Detail
-
XAxisRenderer
XAxisRenderer(ViewPortHandler viewPortHandler, XAxis xAxis, Transformer trans)
-
-
Method Detail
-
getGridClippingRect
RectF getGridClippingRect()
-
getLimitLineSegmentsBuffer
final FloatArray getLimitLineSegmentsBuffer()
-
setLimitLineSegmentsBuffer
final Unit setLimitLineSegmentsBuffer(FloatArray limitLineSegmentsBuffer)
-
getPaintGrid
final <ERROR CLASS> getPaintGrid()
paint object for the grid lines
-
setPaintGrid
final Unit )>setPaintGrid(<ERROR CLASS> paintGrid)
-
getPaintAxisLabels
final Paint getPaintAxisLabels()
paint for the x-label values
-
setPaintAxisLabels
final Unit setPaintAxisLabels(Paint paintAxisLabels)
-
getPaintAxisLine
final <ERROR CLASS> getPaintAxisLine()
paint for the line surrounding the chart
-
setPaintAxisLine
final Unit )>setPaintAxisLine(<ERROR CLASS> paintAxisLine)
-
getTransformer
final Transformer getTransformer()
transformer to transform values to screen pixels and return
-
setTransformer
final Unit setTransformer(Transformer transformer)
transformer to transform values to screen pixels and return
-
computeAxis
Unit computeAxis(Float min, Float max, Boolean inverted)
Computes the axis values.
- Parameters:
min-the minimum value in the data object for this axis
max-the maximum value in the data object for this axis
-
renderAxisLabels
Unit renderAxisLabels(Canvas c)
Draws the axis labels to the screen.
-
renderAxisLine
Unit renderAxisLine(Canvas c)
Draws the line that goes alongside the axis.
-
renderGridLines
Unit renderGridLines(Canvas c)
Draws the grid lines belonging to the axis.
-
renderLimitLineLine
final Unit renderLimitLineLine(Canvas c, LimitLine limitLine, FloatArray position)
-
renderLimitLines
Unit renderLimitLines(Canvas c)
Draws the LimitLines associated with this axis to the screen.
-
renderLimitLineLabel
final Unit renderLimitLineLabel(Canvas c, LimitLine limitLine, FloatArray position, Float yOffset)
-
-
-
-