
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIZoomPanModifier
@interface SCIZoomPanModifier : SCIGestureModifierBase
The SCIZoomPanModifier
provides a touch move to pan the X and Y Axes.
-
Defines
PanGestureRecognizer
which is used to detect pan gestures.Declaration
Objective-C
@property (nonatomic, weak, readonly, nullable) UIPanGestureRecognizer *gestureRecognizer;
-
Defines the
SCIDirection2D
which restricts zoom interactivity to.Declaration
Objective-C
@property (nonatomic) SCIDirection2D direction;
-
Defines how panning behaves when you reach the edge of the
X-Axis
extents. e.g.SCIClipMode.SCIClipMode_ClipAtExtents
prevents panning outside of the X-Axis,SCIClipMode.SCIClipMode_None
allows panning outside.Declaration
Objective-C
@property (nonatomic) SCIClipMode clipModeX;
-
Defines how panning behaves when you reach the edge of the
Y-Axis
extents. e.g.SCIClipMode.SCIClipMode_ClipAtExtents
prevents panning outside of the Y-Axis,SCIClipMode.SCIClipMode_None
allows panning outside.Declaration
Objective-C
@property (nonatomic) SCIClipMode clipModeY;
-
Gets or sets which target is used as limit by
clipModeX
when you reach the edge of theX-Axis
extents.Declaration
Objective-C
@property (nonatomic) SCIClipModeTarget clipModeTargetX;
-
Gets or sets which target is used as limit by
clipModeY
when you reach the edge of theY-Axis
extents.Declaration
Objective-C
@property (nonatomic) SCIClipModeTarget clipModeTargetY;
-
Gets or sets whether the
SCIZoomPanModifier
should perform zoom to extents on theY-Axis
on the each zoom operation when panning in X-Direction only. IfYES
- zoom to extents on theY-Axis
on the each zoom operation when panning in X-Direction only.Note
Use in conjunction withdirection
to achieve different zooming effects.Declaration
Objective-C
@property (nonatomic) BOOL zoomExtentsY;
-
Defines the property which determines whether this pan modifier will be inertial.
Declaration
Objective-C
@property (nonatomic) BOOL inertial;
-
Creates a new instance of the
SCIZoomPanModifier
class.Declaration
Objective-C
- (nonnull instancetype)initWithDefaultNumberOfTouches: (NSUInteger)numberOfTouches;
Parameters
numberOfTouches
The default number of touches which will be used by underlying gestureRecognizer.