Class SFChartZoomPanBehavior
This class is used to enable zooming feature in SFChart. An instance of this class need to be added to Behaviors collection.
Inherited Members
Namespace: Syncfusion.SfChart.iOS
Assembly: Syncfusion.SFChart.iOS.dll
Syntax
public class SFChartZoomPanBehavior : SFChartBehavior
Constructors
SFChartZoomPanBehavior()
Declaration
public SFChartZoomPanBehavior()
Properties
EnableDirectionalZooming
Gets or sets a value indicating whether directional zooming is enabled.
Declaration
public bool EnableDirectionalZooming { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
If this property is false, zooming is performed based on ZoomMode property. If this property is true, zooming is performed based on pinch direction of the user.
This property having effect only with ZoomMode value as XY
.
This property does not expose in MacOS platform.
EnableDoubleTap
Gets or sets the value that indicates whether to zoom the chart on double tap.
Declaration
public bool EnableDoubleTap { get; set; }
Property Value
Type |
---|
System.Boolean |
EnablePanning
Gets or sets the value that indicates whether to allow panning in the chart, when it is in zoomed state.
Declaration
public bool EnablePanning { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableSelectionZooming
Gets or sets the value that indicates whether box selection zooming is enabled.
Declaration
public bool EnableSelectionZooming { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableZooming
Gets or sets the value that indicates whether to allow zooming in chart.
Declaration
public bool EnableZooming { get; set; }
Property Value
Type |
---|
System.Boolean |
MaximumZoomLevel
Gets or sets the value that determines the maximum zoom level of the chart.
Declaration
public double MaximumZoomLevel { get; set; }
Property Value
Type |
---|
System.Double |
SelectionRectBorderColor
Gets or sets the border color of the selection rectangle.
Declaration
public UIColor SelectionRectBorderColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
SelectionRectBorderDashes
Gets or sets the dash array for the border of the selection rectangle.
Declaration
public NSArray SelectionRectBorderDashes { get; set; }
Property Value
Type |
---|
Foundation.NSArray |
SelectionRectBorderWidth
Gets or sets the border width of the selection rectangle.
Declaration
public double SelectionRectBorderWidth { get; set; }
Property Value
Type |
---|
System.Double |
SelectionRectFillColor
Gets or sets the fill color of the selection rectangle.
Declaration
public UIColor SelectionRectFillColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
ZoomMode
Gets or sets the mode that indicates whether to zooming can be carried out in X, Y and XY axis.
Declaration
public SFChartZoomMode ZoomMode { get; set; }
Property Value
Type |
---|
SFChartZoomMode |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
DrawInContext(CGContext)
Declaration
public override void DrawInContext(CGContext context)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGContext | context |
Overrides
PanWithGestureRecognizer(UIPanGestureRecognizer)
Respond to a pan zoom gesture.
Declaration
public virtual void PanWithGestureRecognizer(UIPanGestureRecognizer panGestureRecognizer)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIPanGestureRecognizer | panGestureRecognizer | Pan gesture recognizer. |
PinchWithGestureRecognizer(UIPinchGestureRecognizer)
Respond to a pinch zoom gesture.
Declaration
public virtual void PinchWithGestureRecognizer(UIPinchGestureRecognizer pinchGestureRecognizer)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIPinchGestureRecognizer | pinchGestureRecognizer | Pinch gesture recognizer. |
Reset()
Resets the zoom level for all the axis.
Declaration
public void Reset()
TapWithGestureRecognizer(UITapGestureRecognizer)
Respond to a tap zoom gesture.
Declaration
public virtual void TapWithGestureRecognizer(UITapGestureRecognizer tapGestureRecognizer)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UITapGestureRecognizer | tapGestureRecognizer | Tap gesture recognizer. |
TouchesBegan(NSSet, UIEvent)
Declaration
public override void TouchesBegan(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | |
UIKit.UIEvent | uiEvent |
Overrides
TouchesCancelled(NSSet, UIEvent)
Declaration
public override void TouchesCancelled(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | |
UIKit.UIEvent | uiEvent |
Overrides
TouchesEnded(NSSet, UIEvent)
Declaration
public override void TouchesEnded(NSSet touches, UIEvent uiEvent)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSSet | touches | |
UIKit.UIEvent | uiEvent |
Overrides
Zoom(CGRect)
The marked rect in plot area to display the chart zoom level.
Declaration
public void Zoom(CGRect rect)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGRect | rect | The rect of the chart ordinate. |
Zoom(SFAxis, Double, Double)
This method is used to change the zoom level by using zoom position and zoom factor.
Declaration
public void Zoom(SFAxis axis, double zoomPosition, double zoomFactor)
Parameters
Type | Name | Description |
---|---|---|
SFAxis | axis | Axis. |
System.Double | zoomPosition | Zoom position. |
System.Double | zoomFactor | Zoom factor. |
Zoom(SFAxis, Object, Object)
This method is used to change the zoom level by using range of the axis.
Declaration
public void Zoom(SFAxis axis, object startRange, object endRange)
Parameters
Type | Name | Description |
---|---|---|
SFAxis | axis | Axis. |
System.Object | startRange | Start range. |
System.Object | endRange | End range. |
Zoom(Double)
This method is used to change the zoom level by using factor.
Declaration
public void Zoom(double factor)
Parameters
Type | Name | Description |
---|---|---|
System.Double | factor | Factor. |
ZoomIn()
Zoom-In method is used to increase the centralization zoom level in plot area.
Declaration
public void ZoomIn()
ZoomOut()
Zoom-Out method is used to decrease the centralization zoom level in plot area.
Declaration
public void ZoomOut()
ZoomWithCumulativeScale(Double, Double, SFAxis)
Zoom the specified cumulative scale.
Declaration
public bool ZoomWithCumulativeScale(double cumulativeScale, double origin, SFAxis axis)
Parameters
Type | Name | Description |
---|---|---|
System.Double | cumulativeScale | he cumulative scale of the axis. |
System.Double | origin | The origin of the plot area, its value as 0 to 1. |
SFAxis | axis | Zooming of the axis. |
Returns
Type | Description |
---|---|
System.Boolean |
|