Class SFChartTrackballBehavior
This class is used to enable trackball 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 SFChartTrackballBehavior : SFChartBehavior
Constructors
SFChartTrackballBehavior()
Declaration
public SFChartTrackballBehavior()
Properties
ActivationMode
Gets or sets the value that indicates whether to activate trackball based on the specified touch mode.
Declaration
public SFChartTrackballActivationMode ActivationMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SFChartTrackballActivationMode | The activate mode. |
LabelDisplayMode
Gets or sets the value that indicates whether to display labels for all the data points or only to the nearest data point in trackball.
Declaration
public SFChartTrackballLabelDisplayMode LabelDisplayMode { get; set; }
Property Value
| Type |
|---|
| SFChartTrackballLabelDisplayMode |
LabelStyle
Gets the customized style for the trackball label.
Declaration
public SFChartTrackballLabelStyle LabelStyle { get; }
Property Value
| Type |
|---|
| SFChartTrackballLabelStyle |
LineStyle
Gets the customized style for the trackball line.
Declaration
public SFChartTrackballLineStyle LineStyle { get; }
Property Value
| Type |
|---|
| SFChartTrackballLineStyle |
MarkerStyle
Gets the customized style for the trackball marker.
Declaration
public SFChartTrackballMarkerStyle MarkerStyle { get; }
Property Value
| Type |
|---|
| SFChartTrackballMarkerStyle |
TrackballPointsInfo
Gets the trackball points info.
Declaration
public List<SFChartPointInfo> TrackballPointsInfo { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.List<SFChartPointInfo> |
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
DrawMarker(CGRect, SFChartPointInfo)
Draws the marker.
Declaration
public virtual void DrawMarker(CGRect rect, SFChartPointInfo pointInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| CoreGraphics.CGRect | rect | The rectangle. |
| SFChartPointInfo | pointInfo | Point info. |
DrawRect(CGRect, SFChartPointInfo)
Draws the rectangle.
Declaration
public virtual void DrawRect(CGRect rect, SFChartPointInfo pointInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| CoreGraphics.CGRect | rect | The rectangle. |
| SFChartPointInfo | pointInfo | Point info. |
DrawTrackballAxisLabel(String, SFAxis, CGPoint, SFChartPointInfo)
Draws the trackball axis label, Called via the -display method when the `contents' property is being updated. Default implementation for each trackball axis label. You can get a reference to the graphics context using the UIGraphics.GetCurrentContext() function, but do not establish a strong reference to the graphics context because it can change between calls to the DrawTrackballAxisLabel method.
Declaration
public virtual void DrawTrackballAxisLabel(string label, SFAxis axis, CGPoint point, SFChartPointInfo pointInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | label | The trackball label of axis. |
| SFAxis | axis | The axis of trackball point. |
| CoreGraphics.CGPoint | point | The point is representing the start point of axis track.. |
| SFChartPointInfo | pointInfo | The point is representing the start point information of axis track. |
DrawTrackballGroupedLabels(List<SFChartPointInfo>, CGPoint, CGRect)
Draws the trackball grouped labels, Called via the -display method when the `contents' property is being updated. Default implementation for each trackball grouped labels. You can get a reference to the graphics context using the UIGraphics.GetCurrentContext() function, but do not establish a strong reference to the graphics context because it can change between calls to the DrawTrackballGroupedLabels method.
Declaration
public virtual void DrawTrackballGroupedLabels(List<SFChartPointInfo> pointsInfo, CGPoint connectorPoint, CGRect groupedLabelsRect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<SFChartPointInfo> | pointsInfo | The array which specifies the grouped trackball points information. |
| CoreGraphics.CGPoint | connectorPoint | The point is representing the start point of axis track. |
| CoreGraphics.CGRect | groupedLabelsRect | The rectangle in which to draw the label. |
DrawTrackballLabel(SFChartPointInfo, CGRect)
Called via the -display method when the `contents' property is being updated. Default implementation for each trackball label. You can get a reference to the graphics context using the UIGraphics.GetCurrentContext() function, but do not establish a strong reference to the graphics context because it can change between calls to the DrawTrackballLabel method.
Declaration
public virtual void DrawTrackballLabel(SFChartPointInfo pointInfo, CGRect labelRect)
Parameters
| Type | Name | Description |
|---|---|---|
| SFChartPointInfo | pointInfo | The SFSFChartPointInfo which specifies the trackball point information. |
| CoreGraphics.CGRect | labelRect | The rectangle in which to draw the label. |
DrawTrackballLine(CGPoint, CGPoint)
Draws the trackball line.
Declaration
public virtual void DrawTrackballLine(CGPoint startPoint, CGPoint endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| CoreGraphics.CGPoint | startPoint | Start point. |
| CoreGraphics.CGPoint | endPoint | End point. |
Hide()
Hide this Trackball.
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 |
LongPressWithGestureRecognizer(UILongPressGestureRecognizer)
Longs the press with gesture recognizer.
Declaration
public virtual void LongPressWithGestureRecognizer(UILongPressGestureRecognizer longPressGestureRecognizer)
Parameters
| Type | Name | Description |
|---|---|---|
| UIKit.UILongPressGestureRecognizer | longPressGestureRecognizer | Long press gesture recognizer. |
Show(CGPoint)
Show the specified point of trackball.
Declaration
public virtual void Show(CGPoint point)
Parameters
| Type | Name | Description |
|---|---|---|
| CoreGraphics.CGPoint | point | The location point of SfChart. |
TouchesBegan(NSSet, UIEvent)
Declaration
public override void TouchesBegan(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
TouchesMoved(NSSet, UIEvent)
Declaration
public override void TouchesMoved(NSSet touches, UIEvent uiEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| Foundation.NSSet | touches | |
| UIKit.UIEvent | uiEvent |
Overrides
TrackballAxisLabelsGenerate(List<SFChartPointInfo>)
This method is called by the axis trackball labels when it is generated.
Declaration
public virtual void TrackballAxisLabelsGenerate(List<SFChartPointInfo> pointsInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<SFChartPointInfo> | pointsInfo | The list which specifies the generated trackball points information. |
TrackballLabelsGenerated(List<SFChartPointInfo>)
This method is called by the trackball labels when it is generated.
Declaration
public virtual void TrackballLabelsGenerated(List<SFChartPointInfo> pointsInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<SFChartPointInfo> | pointsInfo | The array which specifies the generated trackball points information. |
ViewForAxisLabel(SFAxis, SFChartPointInfo)
This method is used for setting custom view for trackball label except financial series.
Declaration
public virtual UIView ViewForAxisLabel(SFAxis axis, SFChartPointInfo pointInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| SFAxis | axis | The axis of trackball point. |
| SFChartPointInfo | pointInfo | The SFSFChartPointInfo which specifies the trackball point information. |
Returns
| Type | Description |
|---|---|
| UIKit.UIView | The for axis label. |
ViewForGroupedTrackballLabel(NSMutableArray)
Declaration
public virtual UIView ViewForGroupedTrackballLabel(NSMutableArray pointsInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| Foundation.NSMutableArray | pointsInfo |
Returns
| Type |
|---|
| UIKit.UIView |
ViewForGroupedTrackballLabel(List<SFChartPointInfo>)
This method is used for setting custom view for trackball label except financial series.
Declaration
public virtual UIView ViewForGroupedTrackballLabel(List<SFChartPointInfo> pointsInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<SFChartPointInfo> | pointsInfo | The array which specifies the grouped trackball points information. |
Returns
| Type | Description |
|---|---|
| UIKit.UIView | The for grouped trackball label. |
ViewForTrackballLabel(SFChartPointInfo)
This method is used for setting custom view for trackball label except financial series.
Declaration
public virtual UIView ViewForTrackballLabel(SFChartPointInfo pointInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| SFChartPointInfo | pointInfo | The SFSFChartPointInfo which specifies the trackball point information. |
Returns
| Type | Description |
|---|---|
| UIKit.UIView | Trackball label custom view. |