Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTPlot(AbstractMethods) Category Reference

CPTPlot abstract methods—must be overridden by subclasses. More...

#import <CPTPlot.h>

Public Instance Methods

(nonnull CPTNumberArray *) - fieldIdentifiersForCoordinate: [implementation]
 The field identifiers that correspond to a particular coordinate. More...
 
(CPTCoordinate- coordinateForFieldIdentifier: [implementation]
 The coordinate value that corresponds to a particular field identifier. More...
 
(void) - positionLabelAnnotation:forIndex: [implementation]
 Adjusts the position of the data label annotation for the plot point at the given index. More...
 
(NSUInteger- dataIndexFromInteractionPoint: [implementation]
 Determines the index of the data element that is under the given point. More...
 
Fields
(NSUInteger- numberOfFields
 Number of fields in a plot data record. More...
 
(nonnull CPTNumberArray *) - fieldIdentifiers
 Identifiers (enum values) identifying the fields. More...
 
(nonnull CPTNumberArray *) - fieldIdentifiersForCoordinate:
 
(CPTCoordinate- coordinateForFieldIdentifier:
 
Data Labels
(void) - positionLabelAnnotation:forIndex:
 
User Interaction
(NSUInteger- dataIndexFromInteractionPoint:
 

Detailed Description

CPTPlot abstract methods—must be overridden by subclasses.

Method Documentation

◆ coordinateForFieldIdentifier: [1/2]

- (CPTCoordinate) coordinateForFieldIdentifier: (NSUInteger __unused)  field
implementation

The coordinate value that corresponds to a particular field identifier.

Parameters
fieldThe field identifier for which the corresponding coordinate is desired.
Returns
The coordinate that corresponds to a particular field identifier or CPTCoordinateNone if there is no matching coordinate.

Extends class CPTPlot.

◆ coordinateForFieldIdentifier: [2/2]

- (CPTCoordinate) coordinateForFieldIdentifier: (NSUInteger field

Extends class CPTPlot.

◆ dataIndexFromInteractionPoint: [1/2]

- (NSUInteger) dataIndexFromInteractionPoint: (CGPoint __unused)  point
implementation

Determines the index of the data element that is under the given point.

Parameters
pointThe coordinates of the interaction.
Returns
The index of the data point that is under the given point or NSNotFound if none was found.

Extends class CPTPlot.

◆ dataIndexFromInteractionPoint: [2/2]

- (NSUInteger) dataIndexFromInteractionPoint: (CGPoint point

Extends class CPTPlot.

◆ fieldIdentifiers

- (nonnull CPTNumberArray *) fieldIdentifiers

Identifiers (enum values) identifying the fields.

Returns
Array of NSNumber objects for the various field identifiers.

Extends class CPTPlot.

◆ fieldIdentifiersForCoordinate: [1/2]

- (nonnull CPTNumberArray *) fieldIdentifiersForCoordinate: (CPTCoordinate __unused)  coord
implementation

The field identifiers that correspond to a particular coordinate.

Parameters
coordThe coordinate for which the corresponding field identifiers are desired.
Returns
Array of NSNumber objects for the field identifiers.

Extends class CPTPlot.

◆ fieldIdentifiersForCoordinate: [2/2]

- (nonnull CPTNumberArray *) fieldIdentifiersForCoordinate: (CPTCoordinate coord

Extends class CPTPlot.

◆ numberOfFields

- (NSUInteger) numberOfFields

Number of fields in a plot data record.

Returns
The number of fields.

Extends class CPTPlot.

◆ positionLabelAnnotation:forIndex: [1/2]

- (void) positionLabelAnnotation: (nonnull CPTPlotSpaceAnnotation *__unused)  label
forIndex: (NSUInteger __unused)  idx 
implementation

Adjusts the position of the data label annotation for the plot point at the given index.

Parameters
labelThe annotation for the data label.
idxThe data index for the label.

Extends class CPTPlot.

◆ positionLabelAnnotation:forIndex: [2/2]

- (void) positionLabelAnnotation: (nonnull CPTPlotSpaceAnnotation *)  label
forIndex: (NSUInteger idx 

Extends class CPTPlot.


The documentation for this category was generated from the following files: