draw abstract method
void
draw(
- ChartCanvas canvas,
- Tick<
D> tick, { - required AxisOrientation orientation,
- required Rectangle<
int> axisBounds, - required Rectangle<
int> drawAreaBounds, - required bool isFirst,
- required bool isLast,
- bool collision = false,
Draws tick onto ChartCanvas.
orientation
the orientation of the axis that this tick
belongs to.
axisBounds
the bounds of the axis.
drawAreaBounds
the bounds of the chart draw area adjacent to the axis.
collision
whether or not this tick
should be drawn in such a way to
avoid colliding into other ticks.
Implementation
void draw(ChartCanvas canvas, Tick<D> tick,
{required AxisOrientation orientation,
required Rectangle<int> axisBounds,
required Rectangle<int> drawAreaBounds,
required bool isFirst,
required bool isLast,
bool collision = false});