iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCICursorModifier
@interface SCICursorModifier : SCITooltipModifierWithAxisLabelsBase
The SCICursorModifier
provides a cross-hairs (cursor) plus tooltip with X, Y
data values under the finger as the touch moves.
Add to a SCIChartSurface
and set ISCIChartModifier.isEnabled
to YES
to enable this behaviour.
See
SCIRolloverModifier
.
See
SCITooltipModifier
.
-
Defines the offset on which tooltip and the marker will be shifted in x and y directions.
Declaration
Objective-C
@property (nonatomic) CGFloat offset;
Swift
var offset: CGFloat { get set }
-
Gets the
CGPoint
value which will replaceoffset
property and will be used to shift tooltip and the marker in custom x and y directions.Declaration
Objective-C
@property (nonatomic) CGPoint customPointOffset;
Swift
var customPointOffset: CGPoint { get set }
-
Gets the
SCIPlacement
mode, to determine where to place tooltip and the marker relatively to the Hit-test point.Declaration
Objective-C
@property (nonatomic) SCIPlacement markerPlacement;
Swift
var markerPlacement: SCIPlacement { get set }
-
Gets the `SCITooltipPosition mode, to determine where to place tooltip relatively to the marker.
Declaration
Objective-C
@property (nonatomic) SCITooltipPosition tooltipPosition;
Swift
var tooltipPosition: SCITooltipPosition { get set }
-
Gets the
SCIPenStyle
instance which will be used bySCICursorCrosshairDrawableBehavior
to draw the crosshair.Declaration
Objective-C
@property (nonatomic, strong) SCIPenStyle *_Nonnull crosshairPenStyle;
Swift
var crosshairPenStyle: SCIPenStyle { get set }
-
Creates a new instance of
SCICursorModifier
class.Declaration
Objective-C
- (nonnull instancetype)init;
Swift
convenience init()
-
Creates a new instance of
SCICursorModifier
class.Declaration
Objective-C
- (nonnull instancetype)initWithTooltipContainer: (nonnull id<ISCITooltipContainer>)tooltipContainer;
Swift
convenience init(tooltipContainer: ISCITooltipContainer)
Parameters
tooltipContainer
The tooltip container.
-
Creates a new instance of
SCICursorModifier
class.Declaration
Objective-C
- (nonnull instancetype) initWithCursorBehavior: (nonnull SCICursorTooltipBehavior *)cursorTooltipBehavior axisTooltipsBehavior: (nonnull SCIAxisTooltipsBehaviorBase *)axisTooltipsBehavior andCrosshairDrawableBehavior: (nonnull SCICursorCrosshairDrawableBehavior *)crosshairDrawableBehavior;
Swift
init(cursorBehavior cursorTooltipBehavior: SCICursorTooltipBehavior, axisTooltipsBehavior: SCIAxisTooltipsBehaviorBase, andCrosshairDrawableBehavior crosshairDrawableBehavior: SCICursorCrosshairDrawableBehavior)
Parameters
cursorTooltipBehavior
SCICursorTooltipBehavior
which will be associated with this modifier.axisTooltipsBehavior
SCIAxisTooltipsBehavior
which will be associated with this modifier.crosshairDrawableBehavior
SCICursorCrosshairDrawableBehavior
which will be associated with this modifier.