Xamarin.Android

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartZoomPanBehavior - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartZoomPanBehavior

    Inheritance
    System.Object
    ChartBehavior
    ChartZoomPanBehavior
    Inherited Members
    ChartBehavior.OnTouchMove(Single, Single)
    ChartBehavior.OnLongPress(Single, Single)
    ChartBehavior.Invalidate()
    ChartBehavior.OnLayoutUpdated()
    ChartBehavior.Chart
    Namespace: Com.Syncfusion.Charts
    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
    Type Description
    System.Boolean
    Remarks

    Default value is true.

    EnableDirectionalZooming

    Gets or sets a value indicating whether directional zooming is enabled.

    Declaration
    public bool EnableDirectionalZooming { get; set; }
    Property Value
    Type Description
    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.

    MaximumZoomLevel

    Gets or sets the value that determines the maximum zoom level of the chart.

    Declaration
    public float MaximumZoomLevel { get; set; }
    Property Value
    Type Description
    System.Single

    ScrollingEnabled

    Gets or sets a value indicating whether to allow panning/scrolling in chart.

    Declaration
    public bool ScrollingEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Default value is true.

    SelectionRectFillColor

    Gets or sets the fill color of the selection rectangle.

    Declaration
    public Color SelectionRectFillColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    SelectionRectPathEffect

    Gets or sets the Android.Graphics.PathEffect of the selection rectangle.

    Declaration
    public PathEffect SelectionRectPathEffect { get; set; }
    Property Value
    Type Description
    Android.Graphics.PathEffect

    SelectionRectStrokeColor

    Gets or sets the stroke color of the selection rectangle.

    Declaration
    public Color SelectionRectStrokeColor { get; set; }
    Property Value
    Type Description
    Android.Graphics.Color

    SelectionRectStrokeWidth

    Gets or sets the stroke width of the selection rectangle.

    Declaration
    public float SelectionRectStrokeWidth { get; set; }
    Property Value
    Type Description
    System.Single
    Remarks

    The default value is 2.

    SelectionZoomingEnabled

    Gets or sets a value indicating whether to allow selection zooming or not.

    Declaration
    public bool SelectionZoomingEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Default value is false.

    ZoomingEnabled

    Gets or sets a value indicating whether to allow zooming in chart.

    Declaration
    public bool ZoomingEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Default value is true.

    ZoomMode

    Declaration
    public ZoomMode ZoomMode { get; set; }
    Property Value
    Type Description
    ZoomMode

    Methods

    OnDoubleTap(Single, Single)

    Declaration
    protected override void OnDoubleTap(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Overrides
    ChartBehavior.OnDoubleTap(Single, Single)

    OnDraw(Canvas)

    Declaration
    protected override void OnDraw(Canvas canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas
    Overrides
    ChartBehavior.OnDraw(Canvas)

    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

    OnScroll(Single, Single, Single, Single)

    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
    ChartBehavior.OnScroll(Single, Single, Single, Single)

    OnTouchDown(Single, Single)

    Declaration
    protected override void OnTouchDown(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Overrides
    ChartBehavior.OnTouchDown(Single, Single)

    OnTouchUp(Single, Single)

    Declaration
    protected override void OnTouchUp(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Overrides
    ChartBehavior.OnTouchUp(Single, Single)

    Reset()

    Declaration
    public void Reset()

    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
    Type Description
    System.Boolean

    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
    public void ZoomIn()

    ZoomOut()

    Declaration
    public void ZoomOut()

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved