-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.chart.insets.ChartInsetter,com.patrykandpatrick.vico.core.dimensions.BoundsAware
public interface AxisRenderer<Position extends AxisPosition> implements BoundsAware, ChartInsetter
Defines the minimal set of properties and functions required by other parts of the library to draw an axis.
-
-
Method Summary
Modifier and Type Method Description abstract UnitdrawBehindChart(ChartDrawContext context)Called before the Chart is drawn. abstract UnitdrawAboveChart(ChartDrawContext context)Called after the Chart is drawn. abstract UnitsetRestrictedBounds(RectF bounds)The bounds (RectF) passed here define the area where the AxisRenderer shouldn’t draw anything. abstract PositiongetPosition()Defines the position of the axis relative to the Chart. abstract RectFgetBounds()The bounds of the abstract component. -
-
Method Detail
-
drawBehindChart
abstract Unit drawBehindChart(ChartDrawContext context)
Called before the Chart is drawn. Implementations should rely on this function to draw themselves, unless they need to draw something above the Chart.
- Parameters:
context- holds the information needed to draw the axis.
-
drawAboveChart
abstract Unit drawAboveChart(ChartDrawContext context)
Called after the Chart is drawn. Implementations can use this function to draw content above the Chart.
- Parameters:
context- holds the information needed to draw the axis.
-
setRestrictedBounds
abstract Unit setRestrictedBounds(RectF bounds)
The bounds (RectF) passed here define the area where the AxisRenderer shouldn’t draw anything.
-
getPosition
abstract Position getPosition()
Defines the position of the axis relative to the Chart.
-
-
-
-