Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTAxisLabel.h
Go to the documentation of this file.
1 #import "CPTDefinitions.h"
2 
4 
5 @class CPTAxisLabel;
6 @class CPTLayer;
7 @class CPTTextStyle;
8 
13 
18 
20 
21 @property (nonatomic, readwrite, strong, nullable) CPTLayer *contentLayer;
22 @property (nonatomic, readwrite, assign) CGFloat offset;
23 @property (nonatomic, readwrite, assign) CGFloat rotation;
24 @property (nonatomic, readwrite, assign) CPTAlignment alignment;
25 @property (nonatomic, readwrite, strong, nonnull) NSNumber *tickLocation;
26 
29 -(nonnull instancetype)initWithText:(nullable NSString *)newText textStyle:(nullable CPTTextStyle *)style;
30 -(nonnull instancetype)initWithContentLayer:(nonnull CPTLayer *)layer NS_DESIGNATED_INITIALIZER;
31 -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER;
33 
36 -(void)positionRelativeToViewPoint:(CGPoint)point forCoordinate:(CPTCoordinate)coordinate inDirection:(CPTSign)direction;
37 -(void)positionBetweenViewPoint:(CGPoint)firstPoint andViewPoint:(CGPoint)secondPoint forCoordinate:(CPTCoordinate)coordinate inDirection:(CPTSign)direction;
39 
40 @end
NSSet
CPTAxisLabel
An axis label.
Definition: CPTAxisLabel.h:19
CPTAxisLabel::tickLocation
NSNumber * tickLocation
The data coordinate of the tick location.
Definition: CPTAxisLabel.h:25
CPTAlignment
CPTAlignment
Label and constraint alignment constants.
Definition: CPTDefinitions.h:209
CGPoint
typedef CGPoint
CPTAxisLabel::rotation
CGFloat rotation
The rotation of the label in radians.
Definition: CPTAxisLabel.h:23
CPTTextStyle
Immutable wrapper for various text style properties.
Definition: CPTTextStyle.h:18
CPTAxisLabel::contentLayer
CPTLayer * contentLayer
The label content.
Definition: CPTAxisLabel.h:21
CPTAxisLabel::offset
CGFloat offset
The offset distance between the axis and label.
Definition: CPTAxisLabel.h:22
CPTSign
CPTSign
Enumeration of label positioning offset directions.
Definition: CPTDefinitions.h:185
CPTLayer
Base class for all Core Animation layers in Core Plot.
Definition: CPTLayer.h:83
CPTDefinitions.h
CPTAxisLabel::alignment
CPTAlignment alignment
The alignment of the axis label with respect to the tick mark.
Definition: CPTAxisLabel.h:24
CPTMutableAxisLabelSet
NSMutableSet< CPTAxisLabel * > CPTMutableAxisLabelSet
A mutable set of CPTAxisLabel objects.
Definition: CPTAxisLabel.h:17
CPTCoordinate
CPTCoordinate
Enumeration of axis coordinates.
Definition: CPTDefinitions.h:164
CPTAxisLabelSet
NSSet< CPTAxisLabel * > CPTAxisLabelSet
A set of CPTAxisLabel objects.
Definition: CPTAxisLabel.h:7
NSString
NSSecureCoding-p
NSCoder