Class ChartZoomPanBehavior
Inheritance
System.Object
ChartZoomPanBehavior
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public class ChartZoomPanBehavior : ChartBehavior
Constructors
ChartZoomPanBehavior()
Declaration
public ChartZoomPanBehavior()
Properties
DoubleTapEnabled
Gets or sets a value indicating whether to zoom the chart by one level or reset to original size on double tap.
Declaration
public bool DoubleTapEnabled { get; set; }
Property Value
EnableDirectionalZooming
Gets or sets a value indicating whether directional zooming is enabled.
Declaration
public bool EnableDirectionalZooming { get; set; }
Property Value
MaximumZoomLevel
Gets or sets the value that determines the maximum zoom level of the chart.
Declaration
public float MaximumZoomLevel { get; set; }
Property Value
Gets or sets a value indicating whether to allow panning/scrolling in chart.
Declaration
public bool ScrollingEnabled { get; set; }
Property Value
SelectionRectFillColor
Gets or sets the fill color of the selection rectangle.
Declaration
public Color SelectionRectFillColor { get; set; }
Property Value
Type |
Android.Graphics.Color |
SelectionRectPathEffect
Gets or sets the Android.Graphics.PathEffect of the selection rectangle.
Declaration
public PathEffect SelectionRectPathEffect { get; set; }
Property Value
Type |
Android.Graphics.PathEffect |
SelectionRectStrokeColor
Gets or sets the stroke color of the selection rectangle.
Declaration
public Color SelectionRectStrokeColor { get; set; }
Property Value
Type |
Android.Graphics.Color |
SelectionRectStrokeWidth
Gets or sets the stroke width of the selection rectangle.
Declaration
public float SelectionRectStrokeWidth { get; set; }
Property Value
SelectionZoomingEnabled
Gets or sets a value indicating whether to allow selection zooming or not.
Declaration
public bool SelectionZoomingEnabled { get; set; }
Property Value
ZoomingEnabled
Gets or sets a value indicating whether to allow zooming in chart.
Declaration
public bool ZoomingEnabled { get; set; }
Property Value
ZoomMode
Declaration
public ZoomMode ZoomMode { get; set; }
Property Value
Methods
OnDoubleTap(Single, Single)
Declaration
protected override void OnDoubleTap(float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
Overrides
OnDraw(Canvas)
Declaration
protected override void OnDraw(Canvas canvas)
Parameters
Type |
Name |
Description |
Android.Graphics.Canvas |
canvas |
|
Overrides
OnScaleDelta(Single, Single, Single)
Declaration
protected virtual void OnScaleDelta(float manipulationX, float manipulationY, float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
manipulationX |
|
System.Single |
manipulationY |
|
System.Single |
scaleFactor |
|
OnScaleEnd(Single, Single, Single)
Declaration
protected virtual void OnScaleEnd(float manipulationX, float manipulationY, float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
manipulationX |
|
System.Single |
manipulationY |
|
System.Single |
scaleFactor |
|
OnScaleStart(Single, Single, Single)
Declaration
protected virtual void OnScaleStart(float manipulationX, float manipulationY, float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
manipulationX |
|
System.Single |
manipulationY |
|
System.Single |
scaleFactor |
|
Declaration
protected override void OnScroll(float pointX, float pointY, float distanceX, float distanceY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
System.Single |
distanceX |
|
System.Single |
distanceY |
|
Overrides
OnTouchDown(Single, Single)
Declaration
protected override void OnTouchDown(float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
Overrides
OnTouchUp(Single, Single)
Declaration
protected override void OnTouchUp(float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
Overrides
Reset()
Declaration
Zoom(RectF)
Declaration
public void Zoom(RectF selectedRect)
Parameters
Type |
Name |
Description |
Android.Graphics.RectF |
selectedRect |
|
Zoom(Double)
Declaration
public void Zoom(double zoomFactor)
Parameters
Type |
Name |
Description |
System.Double |
zoomFactor |
|
Zoom(Single, Single, ChartAxis)
Declaration
public bool Zoom(float cumulativeLevel, float origin, ChartAxis axis)
Parameters
Type |
Name |
Description |
System.Single |
cumulativeLevel |
|
System.Single |
origin |
|
ChartAxis |
axis |
|
Returns
ZoomByRange(ChartAxis, Double, Double)
Declaration
public void ZoomByRange(ChartAxis chartAxis, double start, double end)
Parameters
Type |
Name |
Description |
ChartAxis |
chartAxis |
|
System.Double |
start |
|
System.Double |
end |
|
ZoomByRange(DateTimeAxis, DateTime, DateTime)
Declaration
public void ZoomByRange(DateTimeAxis dateTimeAxis, DateTime start, DateTime end)
Parameters
Type |
Name |
Description |
DateTimeAxis |
dateTimeAxis |
|
System.DateTime |
start |
|
System.DateTime |
end |
|
ZoomIn()
Declaration
ZoomOut()
Declaration
ZoomToFactor(ChartAxis, Double, Double)
Declaration
public void ZoomToFactor(ChartAxis chartAxis, double zoomPosition, double zoomFactor)
Parameters
Type |
Name |
Description |
ChartAxis |
chartAxis |
|
System.Double |
zoomPosition |
|
System.Double |
zoomFactor |
|