Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
CPTPlotSpace abstract methods—must be overridden by subclasses. More...
#import <CPTPlotSpace.h>
Public Instance Methods | |
(CGPoint) | - plotAreaViewPointForPlotPoint: [implementation] |
Converts a data point to plot area drawing coordinates. More... | |
(CGPoint) | - plotAreaViewPointForPlotPoint:numberOfCoordinates: [implementation] |
Converts a data point to plot area drawing coordinates. More... | |
(CGPoint) | - plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: [implementation] |
Converts a data point to plot area drawing coordinates. More... | |
(nullable CPTNumberArray *) | - plotPointForPlotAreaViewPoint: [implementation] |
Converts a point given in plot area drawing coordinates to the data coordinate space. More... | |
(void) | - plotPoint:numberOfCoordinates:forPlotAreaViewPoint: [implementation] |
Converts a point given in plot area drawing coordinates to the data coordinate space. More... | |
(void) | - doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: [implementation] |
Converts a point given in drawing coordinates to the data coordinate space. More... | |
(CGPoint) | - plotAreaViewPointForEvent: [implementation] |
Converts the interaction point of an OS event to plot area drawing coordinates. More... | |
(nullable CPTNumberArray *) | - plotPointForEvent: [implementation] |
Converts the interaction point of an OS event to the data coordinate space. More... | |
(void) | - plotPoint:numberOfCoordinates:forEvent: [implementation] |
Converts the interaction point of an OS event to the data coordinate space. More... | |
(void) | - doublePrecisionPlotPoint:numberOfCoordinates:forEvent: [implementation] |
Converts the interaction point of an OS event to the data coordinate space. More... | |
(void) | - setPlotRange:forCoordinate: [implementation] |
Sets the range of values for a given coordinate. More... | |
(nullable CPTPlotRange *) | - plotRangeForCoordinate: [implementation] |
Gets the range of values for a given coordinate. More... | |
(void) | - setScaleType:forCoordinate: [implementation] |
Sets the scale type for a given coordinate. More... | |
(CPTScaleType) | - scaleTypeForCoordinate: [implementation] |
Gets the scale type for a given coordinate. More... | |
(void) | - scaleToFitPlots: [implementation] |
Scales the plot ranges so that the plots just fit in the visible space. More... | |
(void) | - scaleToFitEntirePlots: [implementation] |
Scales the plot ranges so that the plots just fit in the visible space. More... | |
(void) | - scaleBy:aboutPoint: [implementation] |
Zooms the plot space equally in each dimension. More... | |
Coordinate Space Conversions | |
(CGPoint) | - plotAreaViewPointForPlotPoint: |
(CGPoint) | - plotAreaViewPointForPlotPoint:numberOfCoordinates: |
(CGPoint) | - plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: |
(nullable CPTNumberArray *) | - plotPointForPlotAreaViewPoint: |
(void) | - plotPoint:numberOfCoordinates:forPlotAreaViewPoint: |
(void) | - doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: |
(CGPoint) | - plotAreaViewPointForEvent: |
(nullable CPTNumberArray *) | - plotPointForEvent: |
(void) | - plotPoint:numberOfCoordinates:forEvent: |
(void) | - doublePrecisionPlotPoint:numberOfCoordinates:forEvent: |
Coordinate Range | |
(void) | - setPlotRange:forCoordinate: |
(nullable CPTPlotRange *) | - plotRangeForCoordinate: |
Scale Types | |
(void) | - setScaleType:forCoordinate: |
(CPTScaleType) | - scaleTypeForCoordinate: |
Adjusting Ranges | |
(void) | - scaleToFitPlots: |
(void) | - scaleToFitPlots:forCoordinate: |
Scales the plot range for the given coordinate so that the plots just fit in the visible space. More... | |
(void) | - scaleToFitEntirePlots: |
(void) | - scaleToFitEntirePlots:forCoordinate: |
Scales the plot range for the given coordinate so that the plots just fit in the visible space. More... | |
(void) | - scaleBy:aboutPoint: |
CPTPlotSpace abstract methods—must be overridden by subclasses.
|
implementation |
Converts the interaction point of an OS event to the data coordinate space.
plotPoint | A c-style array of data point coordinates (as double values). |
count | The number of coordinate values in the plotPoint array. |
event | The event. |
Extends class CPTPlotSpace.
- (void) doublePrecisionPlotPoint: | (nonnull double *) | plotPoint | |
numberOfCoordinates: | (NSUInteger) | count | |
forEvent: | (nonnull CPTNativeEvent *) | event | |
Extends class CPTPlotSpace.
|
implementation |
Converts a point given in drawing coordinates to the data coordinate space.
plotPoint | A c-style array of data point coordinates (as double values). |
count | The number of coordinate values in the plotPoint array. |
point | The drawing coordinates of the data point. |
Extends class CPTPlotSpace.
- (void) doublePrecisionPlotPoint: | (nonnull double *) | plotPoint | |
numberOfCoordinates: | (NSUInteger) | count | |
forPlotAreaViewPoint: | (CGPoint) | point | |
Extends class CPTPlotSpace.
|
implementation |
Converts a data point to plot area drawing coordinates.
plotPoint | A c-style array of data point coordinates (as double values). |
count | The number of coordinate values in the plotPoint array. |
Extends class CPTPlotSpace.
- (CGPoint) plotAreaViewPointForDoublePrecisionPlotPoint: | (nonnull double *) | plotPoint | |
numberOfCoordinates: | (NSUInteger) | count | |
Extends class CPTPlotSpace.
|
implementation |
Converts the interaction point of an OS event to plot area drawing coordinates.
event | The event. |
Extends class CPTPlotSpace.
- (CGPoint) plotAreaViewPointForEvent: | (nonnull CPTNativeEvent *) | event |
Extends class CPTPlotSpace.
|
implementation |
Converts a data point to plot area drawing coordinates.
plotPoint | An array of data point coordinates (as NSNumber values). |
Extends class CPTPlotSpace.
- (CGPoint) plotAreaViewPointForPlotPoint: | (nonnull CPTNumberArray *) | plotPoint |
Extends class CPTPlotSpace.
|
implementation |
Converts a data point to plot area drawing coordinates.
plotPoint | A c-style array of data point coordinates (as NSDecimal structs). |
count | The number of coordinate values in the plotPoint array. |
Extends class CPTPlotSpace.
- (CGPoint) plotAreaViewPointForPlotPoint: | (nonnull NSDecimal *) | plotPoint | |
numberOfCoordinates: | (NSUInteger) | count | |
Extends class CPTPlotSpace.
|
implementation |
Converts the interaction point of an OS event to the data coordinate space.
plotPoint | A c-style array of data point coordinates (as NSDecimal structs). |
count | The number of coordinate values in the plotPoint array. |
event | The event. |
Extends class CPTPlotSpace.
- (void) plotPoint: | (nonnull NSDecimal *) | plotPoint | |
numberOfCoordinates: | (NSUInteger) | count | |
forEvent: | (nonnull CPTNativeEvent *) | event | |
Extends class CPTPlotSpace.
|
implementation |
Converts a point given in plot area drawing coordinates to the data coordinate space.
plotPoint | A c-style array of data point coordinates (as NSDecimal structs). |
count | The number of coordinate values in the plotPoint array. |
point | The drawing coordinates of the data point. |
Extends class CPTPlotSpace.
- (void) plotPoint: | (nonnull NSDecimal *) | plotPoint | |
numberOfCoordinates: | (NSUInteger) | count | |
forPlotAreaViewPoint: | (CGPoint) | point | |
Extends class CPTPlotSpace.
|
implementation |
Converts the interaction point of an OS event to the data coordinate space.
event | The event. |
Extends class CPTPlotSpace.
- (nullable CPTNumberArray *) plotPointForEvent: | (nonnull CPTNativeEvent *) | event |
Extends class CPTPlotSpace.
|
implementation |
Converts a point given in plot area drawing coordinates to the data coordinate space.
point | The drawing coordinates of the data point. |
Extends class CPTPlotSpace.
- (nullable CPTNumberArray *) plotPointForPlotAreaViewPoint: | (CGPoint) | point |
Extends class CPTPlotSpace.
|
implementation |
Gets the range of values for a given coordinate.
coordinate | The axis coordinate. |
Extends class CPTPlotSpace.
- (nullable CPTPlotRange *) plotRangeForCoordinate: | (CPTCoordinate) | coordinate |
Extends class CPTPlotSpace.
|
implementation |
Zooms the plot space equally in each dimension.
interactionScale | The scaling factor. One (1 ) gives no scaling. |
interactionPoint | The plot area view point about which the scaling occurs. |
Extends class CPTPlotSpace.
Extends class CPTPlotSpace.
|
implementation |
Scales the plot ranges so that the plots just fit in the visible space.
plots | An array of the plots that have to fit in the visible area. |
Extends class CPTPlotSpace.
- (void) scaleToFitEntirePlots: | (nullable CPTPlotArray *) | plots |
Extends class CPTPlotSpace.
- (void) scaleToFitEntirePlots: | (nullable CPTPlotArray *) | plots | |
forCoordinate: | (CPTCoordinate) | coordinate | |
Scales the plot range for the given coordinate so that the plots just fit in the visible space.
plots | An array of the plots that have to fit in the visible area. |
coordinate | The axis coordinate. |
Extends class CPTPlotSpace.
|
implementation |
Scales the plot ranges so that the plots just fit in the visible space.
plots | An array of the plots that have to fit in the visible area. |
Extends class CPTPlotSpace.
- (void) scaleToFitPlots: | (nullable CPTPlotArray *) | plots |
Extends class CPTPlotSpace.
- (void) scaleToFitPlots: | (nullable CPTPlotArray *) | plots | |
forCoordinate: | (CPTCoordinate) | coordinate | |
Scales the plot range for the given coordinate so that the plots just fit in the visible space.
plots | An array of the plots that have to fit in the visible area. |
coordinate | The axis coordinate. |
Extends class CPTPlotSpace.
|
implementation |
Gets the scale type for a given coordinate.
coordinate | The axis coordinate. |
Extends class CPTPlotSpace.
- (CPTScaleType) scaleTypeForCoordinate: | (CPTCoordinate) | coordinate |
Extends class CPTPlotSpace.
|
implementation |
Sets the range of values for a given coordinate.
newRange | The new plot range. |
coordinate | The axis coordinate. |
Extends class CPTPlotSpace.
- (void) setPlotRange: | (nonnull CPTPlotRange *) | newRange | |
forCoordinate: | (CPTCoordinate) | coordinate | |
Extends class CPTPlotSpace.
|
implementation |
Sets the scale type for a given coordinate.
newType | The new scale type. |
coordinate | The axis coordinate. |
Extends class CPTPlotSpace.
- (void) setScaleType: | (CPTScaleType) | newType | |
forCoordinate: | (CPTCoordinate) | coordinate | |
Extends class CPTPlotSpace.