Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTXYPlotSpace.h
Go to the documentation of this file.
1 #import "CPTAnimation.h"
2 #import "CPTDefinitions.h"
3 #import "CPTPlotSpace.h"
4 
5 @class CPTPlotRange;
6 
8 
9 @property (nonatomic, readwrite, copy, nonnull) CPTPlotRange *xRange;
10 @property (nonatomic, readwrite, copy, nonnull) CPTPlotRange *yRange;
11 @property (nonatomic, readwrite, copy, nullable) CPTPlotRange *globalXRange;
12 @property (nonatomic, readwrite, copy, nullable) CPTPlotRange *globalYRange;
13 @property (nonatomic, readwrite, assign) CPTScaleType xScaleType;
14 @property (nonatomic, readwrite, assign) CPTScaleType yScaleType;
15 
16 @property (nonatomic, readwrite) BOOL allowsMomentum;
17 @property (nonatomic, readwrite) BOOL allowsMomentumX;
18 @property (nonatomic, readwrite) BOOL allowsMomentumY;
19 @property (nonatomic, readwrite) CPTAnimationCurve momentumAnimationCurve;
20 @property (nonatomic, readwrite) CPTAnimationCurve bounceAnimationCurve;
21 @property (nonatomic, readwrite) CGFloat momentumAcceleration;
22 @property (nonatomic, readwrite) CGFloat bounceAcceleration;
23 @property (nonatomic, readwrite) CGFloat minimumDisplacementToDrag;
24 
25 -(void)cancelAnimations;
26 
27 @end
CPTXYPlotSpace::momentumAnimationCurve
CPTAnimationCurve momentumAnimationCurve
The animation curve used to stop the motion of the plot ranges when scrolling with momentum....
Definition: CPTXYPlotSpace.h:19
CPTPlotSpace.h
CPTXYPlotSpace::bounceAcceleration
CGFloat bounceAcceleration
Bounce-back acceleration in pixels/second^2 when scrolled past the global range. Defaults to 3000....
Definition: CPTXYPlotSpace.h:22
CPTXYPlotSpace::allowsMomentumY
BOOL allowsMomentumY
If YES, plot space scrolling in the y-direction slows down gradually rather than stopping abruptly....
Definition: CPTXYPlotSpace.h:18
CPTXYPlotSpace::xScaleType
CPTScaleType xScaleType
The scale type of the x coordinate. Defaults to CPTScaleTypeLinear.
Definition: CPTXYPlotSpace.h:13
CPTPlotRange
Defines an immutable range of plot data.
Definition: CPTPlotRange.h:27
CPTXYPlotSpace::yScaleType
CPTScaleType yScaleType
The scale type of the y coordinate. Defaults to CPTScaleTypeLinear.
Definition: CPTXYPlotSpace.h:14
CPTAnimationCurve
CPTAnimationCurve
Enumeration of animation curves.
Definition: CPTAnimation.h:9
CPTXYPlotSpace::bounceAnimationCurve
CPTAnimationCurve bounceAnimationCurve
The animation curve used to return the plot range back to the global range after scrolling....
Definition: CPTXYPlotSpace.h:20
CPTAnimation.h
CPTPlotSpace
Defines the coordinate system of a plot.
Definition: CPTPlotSpace.h:178
CPTXYPlotSpace::momentumAcceleration
CGFloat momentumAcceleration
Deceleration in pixels/second^2 for momentum scrolling. Defaults to 2000.0.
Definition: CPTXYPlotSpace.h:21
-[NSObject copy]
id copy
CPTXYPlotSpace::minimumDisplacementToDrag
CGFloat minimumDisplacementToDrag
The minimum distance the interaction point must move before the event is considered a drag....
Definition: CPTXYPlotSpace.h:23
CPTXYPlotSpace::xRange
CPTPlotRange * xRange
The range of the x coordinate. Defaults to a range with location zero (0) and a length of one (1).
Definition: CPTXYPlotSpace.h:9
CPTXYPlotSpace::globalXRange
CPTPlotRange * globalXRange
The global range of the x coordinate to which the xRange is constrained.
Definition: CPTXYPlotSpace.h:11
CPTXYPlotSpace::allowsMomentum
BOOL allowsMomentum
If YES, plot space scrolling in any direction slows down gradually rather than stopping abruptly....
Definition: CPTXYPlotSpace.h:16
CPTDefinitions.h
CPTXYPlotSpace::globalYRange
CPTPlotRange * globalYRange
The global range of the y coordinate to which the yRange is constrained.
Definition: CPTXYPlotSpace.h:12
CPTXYPlotSpace::allowsMomentumX
BOOL allowsMomentumX
If YES, plot space scrolling in the x-direction slows down gradually rather than stopping abruptly....
Definition: CPTXYPlotSpace.h:17
CPTXYPlotSpace::yRange
CPTPlotRange * yRange
The range of the y coordinate. Defaults to a range with location zero (0) and a length of one (1).
Definition: CPTXYPlotSpace.h:10
CPTAnimationDelegate-p
Animation delegate.
Definition: CPTAnimation.h:54
CPTScaleType
CPTScaleType
Enumeration of axis scale types.
Definition: CPTDefinitions.h:152
CPTXYPlotSpace
A plot space using a two-dimensional cartesian coordinate system.
Definition: CPTXYPlotSpace.h:7
-[CPTXYPlotSpace cancelAnimations]
void cancelAnimations()
Reset the dragging state and cancel any active animations.
Definition: CPTXYPlotSpace.m:1873