PanBehavior<D> class

Adds domain axis panning support to a chart.

Panning is supported by clicking and dragging the mouse for web, or tapping and dragging on the chart for mobile devices.

Implemented types
Implementers

Constructors

PanBehavior()

Properties

chart CartesianChart<D>?
no setter
domainAxisTickProvider → PanningTickProvider<D>
no setter
hashCode int
The hash code for this object.
no setterinherited
isPanning bool
no setter
lastPosition Point<double>?
no setter
panningCompletedCallback PanningCompletedCallback?
no getter
role String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachTo(BaseChart<D> chart) → void
Injects the behavior into a chart.
override
cancelPanning() → void
Cancels the handling of any current panning event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDragEnd(Point<double> localPosition, double scale, double pixelsPerSec) bool
onDragStart(Point<double> localPosition) bool
onDragUpdate(Point<double> localPosition, double scale) bool
onPanEnd() → void
onPanStart() → void
onTapTest(Point<double> localPosition) bool
removeFrom(BaseChart<D> chart) → void
Removes the behavior from a chart.
override
toString() String
A string representation of this object.
inherited

Operators

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