TKChartTrackball Class Reference
Inherits from | NSObject |
Declared in | TKChartTrackball.h |
Tasks
-
– initWithChart:
-
– showAtPoint:
-
– hide
-
isVisible
property -
line
property -
tooltip
property -
snapMode
property -
orientation
property -
minimumPressDuration
property -
hideMode
property -
marginForHitDetection
property
Properties
hideMode
The trackball hide mode.
@property (nonatomic, assign) TKChartTrackballHideMode hideMode
Discussion
The available hide modes are specified below:
typedef enum { TKChartTrackballHideOnTouchUp, TKChartTrackballHideOnSecondTouch } TKChartTrackballHideMode
Declared In
TKChartTrackball.h
isVisible
Returns a value indicating whether the trackball is currently visible (read-only).
@property (nonatomic, readonly) BOOL isVisible
Declared In
TKChartTrackball.h
line
Returns the line annotation used to present the trackball (read-only).
@property (nonatomic, strong, readonly) TKChartTrackballLineAnnotation *line
Declared In
TKChartTrackball.h
marginForHitDetection
If set to a nonzero value the trackball will show only when the touch event occured in the specified distance to an actual point in chart.
@property (nonatomic, assign) CGFloat marginForHitDetection
Declared In
TKChartTrackball.h
minimumPressDuration
Default is 0.5. Time in seconds the fingers must be held down for the gesture to be recognized
@property (nonatomic, assign) CGFloat minimumPressDuration
Declared In
TKChartTrackball.h
orientation
The trackball orientation.
@property (nonatomic, assign) TKChartTrackballOrientation orientation
Discussion
The available orientation modes are specified below:
typedef enum { TKChartTrackballOrientationHorizontal, // The trackball will search for points with equal x coordinates. TKChartTrackballOrientationVertical, // The trackball will search for points with equal y coordinates. } TKChartTrackballOrientation;
Declared In
TKChartTrackball.h
snapMode
Gets or sets the trackball snap mode.
@property (nonatomic, assign) TKChartTrackballSnapMode snapMode
Discussion
The available snap modes are specified below:
typedef enum { TKChartTrackballSnapModeClosestPoint, // Only the closest point is selected TKChartTrackballSnapModeAllClosestPoints, // All points within the specified range are selected } TKChartTrackballSnapMode;
Declared In
TKChartTrackball.h
Instance Methods
initWithChart:
Initializes the trackball with a TKChart instance.
- (instancetype __nonnull)initWithChart:(TKChart *__nonnull)chart
Parameters
- chart
The chart which owns this annotation.
Declared In
TKChartTrackball.h