TickDrawStrategy<D> class
abstract
Strategy for drawing ticks and checking for collisions.
- Implementers
Constructors
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< ? ticks, AxisOrientation? orientation) → CollisionReport<D> >D> -
Returns a
CollisionReport
indicating if there are any collisions. -
decorateTicks(
List< Tick< ticks) → voidD> > - 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< ticks, int maxWidth, int maxHeight, {bool collision = false}) → ViewMeasuredSizesD> > - Returns measurement of ticks drawn horizontally.
-
measureVerticallyDrawnTicks(
List< Tick< ticks, int maxWidth, int maxHeight, {bool collision = false}) → ViewMeasuredSizesD> > - 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< ticks, int maxWidth, int maxHeight, AxisOrientation orientation, {bool collision = false}) → voidD> > - Updates max tick width to match fit max size.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited