Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
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: |
CPTPlot abstract methods—must be overridden by subclasses.
|
implementation |
The coordinate value that corresponds to a particular field identifier.
field | The field identifier for which the corresponding coordinate is desired. |
Extends class CPTPlot.
- (CPTCoordinate) coordinateForFieldIdentifier: | (NSUInteger) | field |
Extends class CPTPlot.
|
implementation |
Determines the index of the data element that is under the given point.
point | The coordinates of the interaction. |
Extends class CPTPlot.
- (NSUInteger) dataIndexFromInteractionPoint: | (CGPoint) | point |
Extends class CPTPlot.
- (nonnull CPTNumberArray *) fieldIdentifiers |
|
implementation |
- (nonnull CPTNumberArray *) fieldIdentifiersForCoordinate: | (CPTCoordinate) | coord |
Extends class CPTPlot.
- (NSUInteger) numberOfFields |
|
implementation |
Adjusts the position of the data label annotation for the plot point at the given index.
label | The annotation for the data label. |
idx | The data index for the label. |
Extends class CPTPlot.
- (void) positionLabelAnnotation: | (nonnull CPTPlotSpaceAnnotation *) | label | |
forIndex: | (NSUInteger) | idx | |
Extends class CPTPlot.