TickDrawStrategy<D> class abstract

Strategy for drawing ticks and checking for collisions.

Implementers

Constructors

TickDrawStrategy()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

collides(List<Tick<D>>? ticks, AxisOrientation? orientation) → CollisionReport<D>
Returns a CollisionReport indicating if there are any collisions.
decorateTicks(List<Tick<D>> ticks) → void
Decorate the existing list of ticks.
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}) → void
Draws tick onto ChartCanvas.
drawAxisLine(ChartCanvas canvas, AxisOrientation orientation, Rectangle<int> axisBounds) → void
measureHorizontallyDrawnTicks(List<Tick<D>> ticks, int maxWidth, int maxHeight, {bool collision = false}) ViewMeasuredSizes
Returns measurement of ticks drawn horizontally.
measureVerticallyDrawnTicks(List<Tick<D>> ticks, int maxWidth, int maxHeight, {bool collision = false}) ViewMeasuredSizes
Returns measurement of ticks drawn vertically.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateTickWidth(List<Tick<D>> ticks, int maxWidth, int maxHeight, AxisOrientation orientation, {bool collision = false}) → void
Updates max tick width to match fit max size.

Operators

operator ==(Object other) bool
The equality operator.
inherited