Class ChartTrackballBehavior
Inheritance
System.Object
ChartTrackballBehavior
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
LabelDisplayMode
Declaration
public TrackballLabelDisplayMode LabelDisplayMode { get; set; }
Property Value
LabelStyle
Declaration
public ChartTrackballLabelStyle LabelStyle { get; set; }
Property Value
LineStyle
Declaration
public ChartLineStyle LineStyle { get; set; }
Property Value
MarkerStyle
Declaration
public ChartTrackballMarkerStyle MarkerStyle { get; set; }
Property Value
ShowLabel
Declaration
public bool ShowLabel { get; set; }
Property Value
ShowLine
Declaration
public bool ShowLine { get; set; }
Property Value
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
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
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
OnLongPress(Single, Single)
Declaration
protected override void OnLongPress(float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
Overrides
OnTouchDown(Single, Single)
Declaration
protected override void OnTouchDown(float pointX, float pointY)
Parameters
Type |
Name |
Description |
System.Single |
pointX |
|
System.Single |
pointY |
|
Overrides
OnTouchMove(Single, Single)
Declaration
protected override void OnTouchMove(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
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 |
|