PanAndZoomBehavior<D> class

Adds domain axis panning and zooming support to the chart.

Zooming is supported for the web by mouse wheel events. Scrolling up zooms the chart in, and scrolling down zooms the chart out. The chart can never be zoomed out past the domain axis range.

Zooming is supported by pinch gestures for mobile devices.

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

Inheritance

Constructors

PanAndZoomBehavior()

Properties

chart CartesianChart<D>?
no setterinherited
domainAxisTickProvider → PanningTickProvider<D>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isPanning bool
no setterinherited
isZooming bool
no setter
lastPosition Point<double>?
no setterinherited
panningCompletedCallback PanningCompletedCallback?
no getterinherited
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.
inherited
cancelPanning() → void
Cancels the handling of any current panning event.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDragEnd(Point<double> localPosition, double scale, double pixelsPerSec) bool
override
onDragStart(Point<double> localPosition) bool
override
onDragUpdate(Point<double> localPosition, double scale) bool
override
onPanEnd() → void
inherited
onPanStart() → void
inherited
onTapTest(Point<double> localPosition) bool
inherited
removeFrom(BaseChart<D> chart) → void
Removes the behavior from a chart.
inherited
toString() String
A string representation of this object.
inherited

Operators

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