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.MacOS.Charts.SfChart
Assembly: Syncfusion.SfChart.XForms.macOS.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(SfLongPressGestureRecognizer)
Longs the press with gesture recognizer.
Declaration
public virtual void LongPressWithGestureRecognizer(SfLongPressGestureRecognizer longPressGestureRecognizer)
Parameters
Type | Name | Description |
---|---|---|
SfLongPressGestureRecognizer | longPressGestureRecognizer | Long press gesture recognizer. |
MouseDown(CGPoint, NSEvent)
Declaration
protected override void MouseDown(CGPoint locationInChart, NSEvent theEvent)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGPoint | locationInChart | |
AppKit.NSEvent | theEvent |
Overrides
MouseDragged(CGPoint, NSEvent)
Declaration
protected override void MouseDragged(CGPoint locationInChart, NSEvent theEvent)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGPoint | locationInChart | |
AppKit.NSEvent | theEvent |
Overrides
MouseMoved(CGPoint, NSEvent)
Declaration
protected override void MouseMoved(CGPoint locationInChart, NSEvent theEvent)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGPoint | locationInChart | |
AppKit.NSEvent | theEvent |
Overrides
MouseUp(CGPoint, NSEvent)
Declaration
protected override void MouseUp(CGPoint locationInChart, NSEvent theEvent)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGPoint | locationInChart | |
AppKit.NSEvent | theEvent |
Overrides
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. |
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 NSView 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 |
---|---|
AppKit.NSView | The for axis label. |
ViewForGroupedTrackballLabel(NSMutableArray)
Declaration
public virtual NSView ViewForGroupedTrackballLabel(NSMutableArray pointsInfo)
Parameters
Type | Name | Description |
---|---|---|
Foundation.NSMutableArray | pointsInfo |
Returns
Type |
---|
AppKit.NSView |
ViewForGroupedTrackballLabel(List<SFChartPointInfo>)
This method is used for setting custom view for trackball label except financial series.
Declaration
public virtual NSView 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 |
---|---|
AppKit.NSView | The for grouped trackball label. |
ViewForTrackballLabel(SFChartPointInfo)
This method is used for setting custom view for trackball label except financial series.
Declaration
public virtual NSView ViewForTrackballLabel(SFChartPointInfo pointInfo)
Parameters
Type | Name | Description |
---|---|---|
SFChartPointInfo | pointInfo | The SFSFChartPointInfo which specifies the trackball point information. |
Returns
Type | Description |
---|---|
AppKit.NSView | Trackball label custom view. |