menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class ChartTrackballBehavior

    Inheritance
    System.Object
    ChartBehavior
    ChartTrackballBehavior
    Inherited Members
    ChartBehavior.Chart
    ChartBehavior.Invalidate()
    ChartBehavior.OnDoubleTap(Single, Single)
    ChartBehavior.OnScroll(Single, Single, Single, Single)
    Namespace: Com.Syncfusion.Charts
    Assembly: Syncfusion.SfChart.Android.dll
    Syntax
    public class ChartTrackballBehavior : ChartBehavior

    Constructors

    ChartTrackballBehavior()

    Declaration
    public ChartTrackballBehavior()

    Properties

    ActivationMode

    Gets or sets the value that indicates whether to activate trackball based on the specified touch mode.

    Declaration
    public ChartTrackballActivationMode ActivationMode { get; set; }
    Property Value
    Type Description
    ChartTrackballActivationMode

    The activate mode.

    LabelDisplayMode

    Declaration
    public TrackballLabelDisplayMode LabelDisplayMode { get; set; }
    Property Value
    Type
    TrackballLabelDisplayMode

    LabelStyle

    Declaration
    public ChartTrackballLabelStyle LabelStyle { get; set; }
    Property Value
    Type
    ChartTrackballLabelStyle

    LineStyle

    Declaration
    public ChartLineStyle LineStyle { get; set; }
    Property Value
    Type
    ChartLineStyle

    MarkerStyle

    Declaration
    public ChartTrackballMarkerStyle MarkerStyle { get; set; }
    Property Value
    Type
    ChartTrackballMarkerStyle

    ShowLabel

    Declaration
    public bool ShowLabel { get; set; }
    Property Value
    Type
    System.Boolean

    ShowLine

    Declaration
    public bool ShowLine { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    DrawAxisLabel(Canvas, ChartAxis, String, Single, Single)

    Declaration
    protected virtual void DrawAxisLabel(Canvas canvas, ChartAxis axis, string label, float pointX, float pointY)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas
    ChartAxis axis
    System.String label
    System.Single pointX
    System.Single pointY

    DrawGroupedLabels(Canvas, List<ChartPointInfo>, RectF)

    Declaration
    protected virtual void DrawGroupedLabels(Canvas canvas, List<ChartPointInfo> chartPointsInfo, RectF rectF)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas
    System.Collections.Generic.List<ChartPointInfo> chartPointsInfo
    Android.Graphics.RectF rectF

    DrawLabel(Canvas, ChartPointInfo, RectF)

    Declaration
    protected virtual void DrawLabel(Canvas canvas, ChartPointInfo pointInfo, RectF rect)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas
    ChartPointInfo pointInfo
    Android.Graphics.RectF rect

    DrawLine(Canvas, Single, Single, Single, Single)

    Declaration
    protected virtual void DrawLine(Canvas canvas, float valueX1, float valueX2, float valueY1, float valueY2)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas
    System.Single valueX1
    System.Single valueX2
    System.Single valueY1
    System.Single valueY2

    DrawMarker(Canvas, Single, Single)

    Declaration
    protected virtual void DrawMarker(Canvas canvas, float pointX, float pointY)
    Parameters
    Type Name Description
    Android.Graphics.Canvas canvas
    System.Single pointX
    System.Single pointY

    GetAxisView(String, ChartAxis)

    Get a view for trackball label of the axis that displays the data at the specified position of the data point. You can either create a View manually or inflate it from an XML layout file.

    Declaration
    protected virtual View GetAxisView(string point0, ChartAxis point1)
    Parameters
    Type Name Description
    System.String point0

    Point0 is label of corresponding axis value.

    ChartAxis point1

    Point1 is corresponding axis

    Returns
    Type Description
    Android.Views.View

    The axis view.

    GetView(ChartSeries, Object, Int32)

    Declaration
    protected virtual View GetView(ChartSeries series, object data, int index)
    Parameters
    Type Name Description
    ChartSeries series
    System.Object data
    System.Int32 index
    Returns
    Type
    Android.Views.View

    Hide()

    Declaration
    public virtual void Hide()

    HitTest(Single, Single)

    Method to check whether the point is in trackball or not.

    Declaration
    public virtual bool HitTest(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX

    The x point

    System.Single pointY

    The y point

    Returns
    Type Description
    System.Boolean

    Point is in trackball or not

    OnDraw(Canvas)

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

    OnLabelsGenerated(List<ChartPointInfo>)

    Declaration
    protected virtual void OnLabelsGenerated(List<ChartPointInfo> chartPointsInfo)
    Parameters
    Type Name Description
    System.Collections.Generic.List<ChartPointInfo> chartPointsInfo

    OnLayoutUpdated()

    Declaration
    protected override void OnLayoutUpdated()
    Overrides
    ChartBehavior.OnLayoutUpdated()

    OnLongPress(Single, Single)

    Declaration
    protected override void OnLongPress(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Overrides
    ChartBehavior.OnLongPress(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)

    OnTouchMove(Single, Single)

    Declaration
    protected override void OnTouchMove(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Overrides
    ChartBehavior.OnTouchMove(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)

    Show(Single, Single)

    Declaration
    public virtual void Show(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY

    UpdateTrackballPosition(Single, Single)

    Declaration
    protected void UpdateTrackballPosition(float pointX, float pointY)
    Parameters
    Type Name Description
    System.Single pointX
    System.Single pointY
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved