-
public class AxisManagerManages a chart’s axes, setting their bounds and drawing them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAxisManager.Companion
-
Field Summary
Fields Modifier and Type Field Description private AxisRenderer<AxisPosition.Vertical.Start>startAxisprivate AxisRenderer<AxisPosition.Horizontal.Top>topAxisprivate AxisRenderer<AxisPosition.Vertical.End>endAxisprivate AxisRenderer<AxisPosition.Horizontal.Bottom>bottomAxis
-
Constructor Summary
Constructors Constructor Description AxisManager()
-
Method Summary
-
-
Method Detail
-
getStartAxis
final AxisRenderer<AxisPosition.Vertical.Start> getStartAxis()
The AxisRenderer for the start axis.
-
setStartAxis
final Unit setStartAxis(AxisRenderer<AxisPosition.Vertical.Start> startAxis)
The AxisRenderer for the start axis.
-
getTopAxis
final AxisRenderer<AxisPosition.Horizontal.Top> getTopAxis()
The AxisRenderer for the top axis.
-
setTopAxis
final Unit setTopAxis(AxisRenderer<AxisPosition.Horizontal.Top> topAxis)
The AxisRenderer for the top axis.
-
getEndAxis
final AxisRenderer<AxisPosition.Vertical.End> getEndAxis()
The AxisRenderer for the end axis.
-
setEndAxis
final Unit setEndAxis(AxisRenderer<AxisPosition.Vertical.End> endAxis)
The AxisRenderer for the end axis.
-
getBottomAxis
final AxisRenderer<AxisPosition.Horizontal.Bottom> getBottomAxis()
The AxisRenderer for the bottom axis.
-
setBottomAxis
final Unit setBottomAxis(AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis)
The AxisRenderer for the bottom axis.
-
addInsetters
final Unit addInsetters(List<ChartInsetter> destination)
Adds the AxisRenderers controlled by this AxisManager to the given MutableList of ChartInsetters.
-
setAxes
final Unit setAxes(AxisRenderer<AxisPosition.Vertical.Start> startAxis, AxisRenderer<AxisPosition.Horizontal.Top> topAxis, AxisRenderer<AxisPosition.Vertical.End> endAxis, AxisRenderer<AxisPosition.Horizontal.Bottom> bottomAxis)
Sets the axes managed by this AxisManager.
-
setAxesBounds
final Unit setAxesBounds(MeasureContext measureContext, RectF contentBounds, RectF chartBounds, Insets insets)
Sets each axis’s bounds.
- Parameters:
measureContext- holds data used for component measurements.contentBounds- the bounds in which the content of the chart should be drawn.insets- the final insets, as specified by the associated chart’s ChartInsetters.
-
drawBehindChart
final Unit drawBehindChart(ChartDrawContext context)
Called before the associated Chart is drawn. This forwards a call to all Axis subclasses that causes them to be drawn behind the chart.
- Parameters:
context- holds the information necessary to draw the axes.
-
drawAboveChart
final Unit drawAboveChart(ChartDrawContext context)
Called after the associated Chart is drawn. This forwards a call to all Axis subclasses that causes them to be drawn above the chart.
- Parameters:
context- holds the information necessary to draw the axes.
-
-
-
-