Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
<CPTScatterPlotDelegate> Protocol Reference

Scatter plot delegate. More...

#import <CPTScatterPlot.h>

+ Inheritance diagram for <CPTScatterPlotDelegate>:
+ Collaboration diagram for <CPTScatterPlotDelegate>:

Public Instance Methods

Data Point Selection
(void) - scatterPlot:plotSymbolWasSelectedAtRecordIndex:
 (Optional) Informs the delegate that a data point received both the touch down and up events. More...
 
(void) - scatterPlot:plotSymbolWasSelectedAtRecordIndex:withEvent:
 (Optional) Informs the delegate that a data point received both the touch down and up events. More...
 
(void) - scatterPlot:plotSymbolTouchDownAtRecordIndex:
 (Optional) Informs the delegate that a data point touch started. More...
 
(void) - scatterPlot:plotSymbolTouchDownAtRecordIndex:withEvent:
 (Optional) Informs the delegate that a data point touch started. More...
 
(void) - scatterPlot:plotSymbolTouchUpAtRecordIndex:
 (Optional) Informs the delegate that a data point touch ended. More...
 
(void) - scatterPlot:plotSymbolTouchUpAtRecordIndex:withEvent:
 (Optional) Informs the delegate that a data point touch ended. More...
 
Data Line Selection
(void) - scatterPlotDataLineWasSelected:
 (Optional) Informs the delegate that the plot line received both the touch down and up events. More...
 
(void) - scatterPlot:dataLineWasSelectedWithEvent:
 (Optional) Informs the delegate that the plot line received both the touch down and up events. More...
 
(void) - scatterPlotDataLineTouchDown:
 (Optional) Informs the delegate that touch started while over the plot line. More...
 
(void) - scatterPlot:dataLineTouchDownWithEvent:
 (Optional) Informs the delegate that touch started while over the plot line. More...
 
(void) - scatterPlotDataLineTouchUp:
 (Optional) Informs the delegate that touch ended while over the plot line. More...
 
(void) - scatterPlot:dataLineTouchUpWithEvent:
 (Optional) Informs the delegate that touch ended while over the plot line. More...
 
Drawing
(void) - scatterPlot:prepareForDrawingPlotLine:inContext:
 (Optional) Gives the delegate an opportunity to do something just before the plot line will be drawn. A common operation is to draw a selection indicator for the plot line. This is called after the plot fill has been drawn. More...
 
- Public Instance Methods inherited from <CPTPlotDelegate>
(void) - plot:dataLabelWasSelectedAtRecordIndex:
 (Optional) Informs the delegate that a data label received both the touch down and up events. More...
 
(void) - plot:dataLabelWasSelectedAtRecordIndex:withEvent:
 (Optional) Informs the delegate that a data label received both the touch down and up events. More...
 
(void) - plot:dataLabelTouchDownAtRecordIndex:
 (Optional) Informs the delegate that a data label touch started. More...
 
(void) - plot:dataLabelTouchDownAtRecordIndex:withEvent:
 (Optional) Informs the delegate that a data label touch started. More...
 
(void) - plot:dataLabelTouchUpAtRecordIndex:
 (Optional) Informs the delegate that a data label touch ended. More...
 
(void) - plot:dataLabelTouchUpAtRecordIndex:withEvent:
 (Optional) Informs the delegate that a data label touch ended. More...
 
(void) - didFinishDrawing:
 (Optional) Informs the delegate that plot drawing is finished. More...
 
- Public Instance Methods inherited from <NSObject>
(NSString *) - description
 
(NSUInteger- hash
 
(BOOL- isEqual:
 

Detailed Description

Scatter plot delegate.

Method Documentation

◆ scatterPlot:dataLineTouchDownWithEvent:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
dataLineTouchDownWithEvent: (nonnull CPTNativeEvent *)  event 

(Optional) Informs the delegate that touch started while over the plot line.

Parameters
plotThe scatter plot.
eventThe event that triggered the selection.

◆ scatterPlot:dataLineTouchUpWithEvent:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
dataLineTouchUpWithEvent: (nonnull CPTNativeEvent *)  event 

(Optional) Informs the delegate that touch ended while over the plot line.

Parameters
plotThe scatter plot.
eventThe event that triggered the selection.

◆ scatterPlot:dataLineWasSelectedWithEvent:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
dataLineWasSelectedWithEvent: (nonnull CPTNativeEvent *)  event 

(Optional) Informs the delegate that the plot line received both the touch down and up events.

Parameters
plotThe scatter plot.
eventThe event that triggered the selection.

◆ scatterPlot:plotSymbolTouchDownAtRecordIndex:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
plotSymbolTouchDownAtRecordIndex: (NSUInteger idx 

(Optional) Informs the delegate that a data point touch started.

Parameters
plotThe scatter plot.
idxThe index of the touched data point.

◆ scatterPlot:plotSymbolTouchDownAtRecordIndex:withEvent:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
plotSymbolTouchDownAtRecordIndex: (NSUInteger idx
withEvent: (nonnull CPTNativeEvent *)  event 

(Optional) Informs the delegate that a data point touch started.

Parameters
plotThe scatter plot.
idxThe index of the touched data point.
eventThe event that triggered the selection.

◆ scatterPlot:plotSymbolTouchUpAtRecordIndex:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
plotSymbolTouchUpAtRecordIndex: (NSUInteger idx 

(Optional) Informs the delegate that a data point touch ended.

Parameters
plotThe scatter plot.
idxThe index of the touched data point.

◆ scatterPlot:plotSymbolTouchUpAtRecordIndex:withEvent:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
plotSymbolTouchUpAtRecordIndex: (NSUInteger idx
withEvent: (nonnull CPTNativeEvent *)  event 

(Optional) Informs the delegate that a data point touch ended.

Parameters
plotThe scatter plot.
idxThe index of the touched data point.
eventThe event that triggered the selection.

◆ scatterPlot:plotSymbolWasSelectedAtRecordIndex:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
plotSymbolWasSelectedAtRecordIndex: (NSUInteger idx 

(Optional) Informs the delegate that a data point received both the touch down and up events.

Parameters
plotThe scatter plot.
idxThe index of the touched data point.

◆ scatterPlot:plotSymbolWasSelectedAtRecordIndex:withEvent:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
plotSymbolWasSelectedAtRecordIndex: (NSUInteger idx
withEvent: (nonnull CPTNativeEvent *)  event 

(Optional) Informs the delegate that a data point received both the touch down and up events.

Parameters
plotThe scatter plot.
idxThe index of the touched data point.
eventThe event that triggered the selection.

◆ scatterPlot:prepareForDrawingPlotLine:inContext:

- (void) scatterPlot: (nonnull CPTScatterPlot *)  plot
prepareForDrawingPlotLine: (nonnull CGPathRef dataLinePath
inContext: (nonnull CGContextRef context 

(Optional) Gives the delegate an opportunity to do something just before the plot line will be drawn. A common operation is to draw a selection indicator for the plot line. This is called after the plot fill has been drawn.

Parameters
plotThe scatter plot.
dataLinePathThe CGPath describing the plot line that is about to be drawn.
contextThe graphics context in which the plot line will be drawn.

◆ scatterPlotDataLineTouchDown:

- (void) scatterPlotDataLineTouchDown: (nonnull CPTScatterPlot *)  plot

(Optional) Informs the delegate that touch started while over the plot line.

Parameters
plotThe scatter plot.

◆ scatterPlotDataLineTouchUp:

- (void) scatterPlotDataLineTouchUp: (nonnull CPTScatterPlot *)  plot

(Optional) Informs the delegate that touch ended while over the plot line.

Parameters
plotThe scatter plot.

◆ scatterPlotDataLineWasSelected:

- (void) scatterPlotDataLineWasSelected: (nonnull CPTScatterPlot *)  plot

(Optional) Informs the delegate that the plot line received both the touch down and up events.

Parameters
plotThe scatter plot.

The documentation for this protocol was generated from the following file: