ZoomPanBehavior class
Customizes the zooming options.
- Inheritance
- Object
- ZoomBehavior
- ZoomPanBehavior
Constructors
Properties
- enableDoubleTapZooming → bool
-
Enables or disables the double tap zooming. [...]
final
- enablePanning → bool
-
Enables or disables the panning. Panning can be performed on a zoomed axis. [...]
final
- enablePinching → bool
-
Enables or disables the pinch zooming. Pinching can be performed by moving two
fingers over the chart. [...]
final
- enableSelectionZooming → bool
-
Enables or disables the selection zooming. Selection zooming can be performed
by dragging. The drawn rectangular region will be zoomed on touch. [...]
final
- maximumZoomLevel → double
-
Maximum zoom level. Zooming will be stopped after reached this value. [...]
final
- selectionRectBorderColor → Color
-
Border color of the selection zooming rectangle. [...]
final
- selectionRectBorderWidth → double
-
Border width of the selection zooming rectangle. [...]
final
- selectionRectColor → Color
-
Color of the selection zooming rectangle. [...]
final
- zoomMode → ZoomMode
-
By default, both the x and y-axes in the chart can be zoomed. It can be changed by
setting value to this property. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
onDoubleTap(
double xPos, double yPos, double zoomFactor) → void -
Performs the double-tap action.
override
-
onDrawSelectionZoomRect(
double currentX, double currentY, double startX, double startY) → void -
Performs selection zooming.
override
-
onPaint(
Canvas canvas) → void -
Draws selection zoomRect
override
-
onPan(
double xPos, double yPos) → void -
Performs panning action.
override
-
onPinch(
ChartAxis axis, double position, double scaleFactor) → void -
Performs pinch zooming.
override
-
onPinchEnd(
ChartAxis axis, double firstX, double firstY, double secondX, double secondY, double scaleFactor) → void -
Performs pinch end action.
override
-
onPinchStart(
ChartAxis axis, double firstX, double firstY, double secondX, double secondY, double scaleFactor) → void -
Performs pinch start action.
override
-
panToDirection(
String direction) → void - Pans the plot area for given left, right, top, and bottom directions. To perform this action, the plot area needs to be in zoomed state.
-
reset(
) → void - Returns the plot area back to its original position after zooming.
-
zoomByFactor(
double zoomFactor) → void - Changes the zoom level using zoom factor. Here, you can pass the zoom factor of an axis to magnify the plot area. The value ranges from 0 to 1.
-
zoomByRect(
Rect rect) → void - Zooms the chart for a given rectangle value. Here, you can pass the rectangle with the left, right, top, and bottom values, using which the selection zooming will be performed.
-
zoomIn(
) → void - Increases the magnification of the plot area.
-
zoomOut(
) → void - Decreases the magnification of the plot area.
-
zoomToSingleAxis(
ChartAxis axiss, double zoomPosition, double zoomFactor) → void - Change the zoom level of an appropriate axis. Here, you need to pass axis, zoom factor, zoom position of the zoom level that needs to be modified.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited