forked from core-plot/core-plot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCPTMutablePlotRange.h
More file actions
32 lines (26 loc) · 932 Bytes
/
CPTMutablePlotRange.h
File metadata and controls
32 lines (26 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#import "CPTPlotRange.h"
@interface CPTMutablePlotRange : CPTPlotRange
/// @name Range Limits
/// @{
@property (nonatomic, readwrite, strong, nonnull) NSNumber *location;
@property (nonatomic, readwrite, strong, nonnull) NSNumber *length;
@property (nonatomic, readwrite) NSDecimal locationDecimal;
@property (nonatomic, readwrite) NSDecimal lengthDecimal;
@property (nonatomic, readwrite) double locationDouble;
@property (nonatomic, readwrite) double lengthDouble;
/// @}
/// @name Combining Ranges
/// @{
-(void)unionPlotRange:(nullable CPTPlotRange *)otherRange;
-(void)intersectionPlotRange:(nullable CPTPlotRange *)otherRange;
/// @}
/// @name Shifting Ranges
/// @{
-(void)shiftLocationToFitInRange:(nonnull CPTPlotRange *)otherRange;
-(void)shiftEndToFitInRange:(nonnull CPTPlotRange *)otherRange;
/// @}
/// @name Expanding/Contracting Ranges
/// @{
-(void)expandRangeByFactor:(nonnull NSNumber *)factor;
/// @}
@end