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

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:
 

Detailed Description

CPTPlotSpace abstract methods—must be overridden by subclasses.

Method Documentation

◆ doublePrecisionPlotPoint:numberOfCoordinates:forEvent: [1/2]

- (void) doublePrecisionPlotPoint: (nonnull double *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forEvent: (nonnull CPTNativeEvent *__unused)  event 
implementation

Converts the interaction point of an OS event to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as double values).
countThe number of coordinate values in the plotPoint array.
eventThe event.

Extends class CPTPlotSpace.

◆ doublePrecisionPlotPoint:numberOfCoordinates:forEvent: [2/2]

- (void) doublePrecisionPlotPoint: (nonnull double *)  plotPoint
numberOfCoordinates: (NSUInteger count
forEvent: (nonnull CPTNativeEvent *)  event 

Extends class CPTPlotSpace.

◆ doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: [1/2]

- (void) doublePrecisionPlotPoint: (nonnull double *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forPlotAreaViewPoint: (CGPoint __unused)  point 
implementation

Converts a point given in drawing coordinates to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as double values).
countThe number of coordinate values in the plotPoint array.
pointThe drawing coordinates of the data point.

Extends class CPTPlotSpace.

◆ doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: [2/2]

- (void) doublePrecisionPlotPoint: (nonnull double *)  plotPoint
numberOfCoordinates: (NSUInteger count
forPlotAreaViewPoint: (CGPoint point 

Extends class CPTPlotSpace.

◆ plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: [1/2]

- (CGPoint) plotAreaViewPointForDoublePrecisionPlotPoint: (nonnull double *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count 
implementation

Converts a data point to plot area drawing coordinates.

Parameters
plotPointA c-style array of data point coordinates (as double values).
countThe number of coordinate values in the plotPoint array.
Returns
The drawing coordinates of the data point.

Extends class CPTPlotSpace.

◆ plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: [2/2]

- (CGPoint) plotAreaViewPointForDoublePrecisionPlotPoint: (nonnull double *)  plotPoint
numberOfCoordinates: (NSUInteger count 

Extends class CPTPlotSpace.

◆ plotAreaViewPointForEvent: [1/2]

- (CGPoint) plotAreaViewPointForEvent: (nonnull CPTNativeEvent *__unused)  event
implementation

Converts the interaction point of an OS event to plot area drawing coordinates.

Parameters
eventThe event.
Returns
The drawing coordinates of the point.

Extends class CPTPlotSpace.

◆ plotAreaViewPointForEvent: [2/2]

- (CGPoint) plotAreaViewPointForEvent: (nonnull CPTNativeEvent *)  event

Extends class CPTPlotSpace.

◆ plotAreaViewPointForPlotPoint: [1/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull CPTNumberArray *cpt_unused plotPoint
implementation

Converts a data point to plot area drawing coordinates.

Parameters
plotPointAn array of data point coordinates (as NSNumber values).
Returns
The drawing coordinates of the data point.

Extends class CPTPlotSpace.

◆ plotAreaViewPointForPlotPoint: [2/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull CPTNumberArray *)  plotPoint

Extends class CPTPlotSpace.

◆ plotAreaViewPointForPlotPoint:numberOfCoordinates: [1/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull NSDecimal *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count 
implementation

Converts a data point to plot area drawing coordinates.

Parameters
plotPointA c-style array of data point coordinates (as NSDecimal structs).
countThe number of coordinate values in the plotPoint array.
Returns
The drawing coordinates of the data point.

Extends class CPTPlotSpace.

◆ plotAreaViewPointForPlotPoint:numberOfCoordinates: [2/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull NSDecimal *)  plotPoint
numberOfCoordinates: (NSUInteger count 

Extends class CPTPlotSpace.

◆ plotPoint:numberOfCoordinates:forEvent: [1/2]

- (void) plotPoint: (nonnull NSDecimal *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forEvent: (nonnull CPTNativeEvent *__unused)  event 
implementation

Converts the interaction point of an OS event to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as NSDecimal structs).
countThe number of coordinate values in the plotPoint array.
eventThe event.

Extends class CPTPlotSpace.

◆ plotPoint:numberOfCoordinates:forEvent: [2/2]

- (void) plotPoint: (nonnull NSDecimal *)  plotPoint
numberOfCoordinates: (NSUInteger count
forEvent: (nonnull CPTNativeEvent *)  event 

Extends class CPTPlotSpace.

◆ plotPoint:numberOfCoordinates:forPlotAreaViewPoint: [1/2]

- (void) plotPoint: (nonnull NSDecimal *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forPlotAreaViewPoint: (CGPoint __unused)  point 
implementation

Converts a point given in plot area drawing coordinates to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as NSDecimal structs).
countThe number of coordinate values in the plotPoint array.
pointThe drawing coordinates of the data point.

Extends class CPTPlotSpace.

◆ plotPoint:numberOfCoordinates:forPlotAreaViewPoint: [2/2]

- (void) plotPoint: (nonnull NSDecimal *)  plotPoint
numberOfCoordinates: (NSUInteger count
forPlotAreaViewPoint: (CGPoint point 

Extends class CPTPlotSpace.

◆ plotPointForEvent: [1/2]

- (nullable CPTNumberArray *) plotPointForEvent: (nonnull CPTNativeEvent *__unused)  event
implementation

Converts the interaction point of an OS event to the data coordinate space.

Parameters
eventThe event.
Returns
An array of data point coordinates (as NSNumber values).

Extends class CPTPlotSpace.

◆ plotPointForEvent: [2/2]

- (nullable CPTNumberArray *) plotPointForEvent: (nonnull CPTNativeEvent *)  event

Extends class CPTPlotSpace.

◆ plotPointForPlotAreaViewPoint: [1/2]

- (nullable CPTNumberArray *) plotPointForPlotAreaViewPoint: (CGPoint __unused)  point
implementation

Converts a point given in plot area drawing coordinates to the data coordinate space.

Parameters
pointThe drawing coordinates of the data point.
Returns
An array of data point coordinates (as NSNumber values).

Extends class CPTPlotSpace.

◆ plotPointForPlotAreaViewPoint: [2/2]

- (nullable CPTNumberArray *) plotPointForPlotAreaViewPoint: (CGPoint point

Extends class CPTPlotSpace.

◆ plotRangeForCoordinate: [1/2]

- (nullable CPTPlotRange *) plotRangeForCoordinate: (CPTCoordinate __unused)  coordinate
implementation

Gets the range of values for a given coordinate.

Parameters
coordinateThe axis coordinate.
Returns
The range of values.

Extends class CPTPlotSpace.

◆ plotRangeForCoordinate: [2/2]

- (nullable CPTPlotRange *) plotRangeForCoordinate: (CPTCoordinate coordinate

Extends class CPTPlotSpace.

◆ scaleBy:aboutPoint: [1/2]

- (void) scaleBy: (CGFloat __unused)  interactionScale
aboutPoint: (CGPoint __unused)  interactionPoint 
implementation

Zooms the plot space equally in each dimension.

Parameters
interactionScaleThe scaling factor. One (1) gives no scaling.
interactionPointThe plot area view point about which the scaling occurs.

Extends class CPTPlotSpace.

◆ scaleBy:aboutPoint: [2/2]

- (void) scaleBy: (CGFloat interactionScale
aboutPoint: (CGPoint interactionPoint 

Extends class CPTPlotSpace.

◆ scaleToFitEntirePlots: [1/2]

- (void) scaleToFitEntirePlots: (nullable CPTPlotArray *__unused)  plots
implementation

Scales the plot ranges so that the plots just fit in the visible space.

Parameters
plotsAn array of the plots that have to fit in the visible area.

Extends class CPTPlotSpace.

◆ scaleToFitEntirePlots: [2/2]

- (void) scaleToFitEntirePlots: (nullable CPTPlotArray *)  plots

Extends class CPTPlotSpace.

◆ scaleToFitEntirePlots:forCoordinate:

- (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.

Parameters
plotsAn array of the plots that have to fit in the visible area.
coordinateThe axis coordinate.

Extends class CPTPlotSpace.

◆ scaleToFitPlots: [1/2]

- (void) scaleToFitPlots: (nullable CPTPlotArray *__unused)  plots
implementation

Scales the plot ranges so that the plots just fit in the visible space.

Parameters
plotsAn array of the plots that have to fit in the visible area.

Extends class CPTPlotSpace.

◆ scaleToFitPlots: [2/2]

- (void) scaleToFitPlots: (nullable CPTPlotArray *)  plots

Extends class CPTPlotSpace.

◆ scaleToFitPlots:forCoordinate:

- (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.

Parameters
plotsAn array of the plots that have to fit in the visible area.
coordinateThe axis coordinate.

Extends class CPTPlotSpace.

◆ scaleTypeForCoordinate: [1/2]

- (CPTScaleType) scaleTypeForCoordinate: (CPTCoordinate __unused)  coordinate
implementation

Gets the scale type for a given coordinate.

Parameters
coordinateThe axis coordinate.
Returns
The scale type.

Extends class CPTPlotSpace.

◆ scaleTypeForCoordinate: [2/2]

- (CPTScaleType) scaleTypeForCoordinate: (CPTCoordinate coordinate

Extends class CPTPlotSpace.

◆ setPlotRange:forCoordinate: [1/2]

- (void) setPlotRange: (nonnull CPTPlotRange *__unused)  newRange
forCoordinate: (CPTCoordinate __unused)  coordinate 
implementation

Sets the range of values for a given coordinate.

Parameters
newRangeThe new plot range.
coordinateThe axis coordinate.

Extends class CPTPlotSpace.

◆ setPlotRange:forCoordinate: [2/2]

- (void) setPlotRange: (nonnull CPTPlotRange *)  newRange
forCoordinate: (CPTCoordinate coordinate 

Extends class CPTPlotSpace.

◆ setScaleType:forCoordinate: [1/2]

- (void) setScaleType: (CPTScaleType __unused)  newType
forCoordinate: (CPTCoordinate __unused)  coordinate 
implementation

Sets the scale type for a given coordinate.

Parameters
newTypeThe new scale type.
coordinateThe axis coordinate.

Extends class CPTPlotSpace.

◆ setScaleType:forCoordinate: [2/2]

- (void) setScaleType: (CPTScaleType newType
forCoordinate: (CPTCoordinate coordinate 

Extends class CPTPlotSpace.


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