-
public abstract class AxisRenderer extends Renderer
Baseclass of all axis renderers.
-
-
Field Summary
Fields Modifier and Type Field Description private <ERROR CLASS>paintGridprivate PaintpaintAxisLabelsprivate <ERROR CLASS>paintAxisLineprivate Transformertransformer
-
Constructor Summary
Constructors Constructor Description AxisRenderer(ViewPortHandler viewPortHandler, Transformer transformer, AxisBase axis)
-
Method Summary
Modifier and Type Method Description 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. abstract UnitrenderAxisLabels(Canvas c)Draws the axis labels to the screen. abstract UnitrenderGridLines(Canvas c)Draws the grid lines belonging to the axis. abstract UnitrenderAxisLine(Canvas c)Draws the line that goes alongside the axis. abstract UnitrenderLimitLines(Canvas c)Draws the LimitLines associated with this axis to the screen. final UnitsetTextColor(Integer color)Sets the text color to use for the labels. -
-
Constructor Detail
-
AxisRenderer
AxisRenderer(ViewPortHandler viewPortHandler, Transformer transformer, AxisBase axis)
-
-
Method Detail
-
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
abstract Unit renderAxisLabels(Canvas c)
Draws the axis labels to the screen.
-
renderGridLines
abstract Unit renderGridLines(Canvas c)
Draws the grid lines belonging to the axis.
-
renderAxisLine
abstract Unit renderAxisLine(Canvas c)
Draws the line that goes alongside the axis.
-
renderLimitLines
abstract Unit renderLimitLines(Canvas c)
Draws the LimitLines associated with this axis to the screen.
-
setTextColor
final Unit setTextColor(Integer color)
Sets the text color to use for the labels. Make sure to use ContextCompat.getColor(context,...) when using a color from the resources.
-
-
-
-