SChartCrosshair Protocol Reference

Conforms to NSObject
Declared in SChartCrosshairProtocol.h
Availability
Related samples

Overview

The chart’s crosshair interface - the chart will push ‘show’, ‘move’ and ‘hide’ events onto the crosshair, which should respond appropriately.

Tasks

Instance Methods

hide

Instructs the crosshair to hide itself from view (and usually to removeFromSuperview)

- (void)hide

Discussion

This method is called by the chart when the crosshair should be dismissed, paired with the showAtPoint:inChart: call.

Declared In

SChartCrosshairProtocol.h

isHidden

Returns a BOOL representing whether the crosshair is hidden.

- (BOOL)isHidden

Declared In

SChartCrosshairProtocol.h

moveToPoint:inChart:

Instructs the crosshair to move itself in chart to the position pointInChart, in the chart’s coordinate space.

- (void)moveToPoint:(CGPoint)pointInChart inChart:(ShinobiChart *)chart

Discussion

This method is called every for frame of the crosshair’s movement, when the chart wishes to update the crosshair.

Declared In

SChartCrosshairProtocol.h

showAtPoint:inChart:

Instructs the crosshair to show itself in the chart at pointInChart, which is in the chart’s coordinate space.

- (void)showAtPoint:(CGPoint)pointInChart inChart:(ShinobiChart *)chart

Discussion

This method is called each time the chart wishes to make the crosshair visible, and is paired with a hide call.

Declared In

SChartCrosshairProtocol.h