Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTAnnotation.h
Go to the documentation of this file.
1 #import "CPTDefinitions.h"
2 
4 
5 @class CPTAnnotation;
7 @class CPTLayer;
8 
13 
18 
20 
21 @property (nonatomic, readwrite, strong, nullable) CPTLayer *contentLayer;
22 @property (nonatomic, readwrite, cpt_weak_property, nullable) CPTAnnotationHostLayer *annotationHostLayer;
23 @property (nonatomic, readwrite, assign) CGPoint contentAnchorPoint;
24 @property (nonatomic, readwrite, assign) CGPoint displacement;
25 @property (nonatomic, readwrite, assign) CGFloat rotation;
26 
29 -(nonnull instancetype)init NS_DESIGNATED_INITIALIZER;
30 -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER;
32 
33 @end
34 
35 #pragma mark -
36 
41 
46 
47 @end
CPTAnnotationArray
NSArray< __kindof CPTAnnotation * > CPTAnnotationArray
An array of annotations.
Definition: CPTAnnotation.h:7
CPTAnnotation::contentLayer
CPTLayer * contentLayer
The annotation content.
Definition: CPTAnnotation.h:21
CPTAnnotation::contentAnchorPoint
CGPoint contentAnchorPoint
The anchor point for the content layer.
Definition: CPTAnnotation.h:23
CPTAnnotation
An annotation positions a content layer relative to some anchor point.
Definition: CPTAnnotation.h:19
NSArray
CPTMutableAnnotationArray
NSMutableArray< __kindof CPTAnnotation * > CPTMutableAnnotationArray
A mutable array of annotations.
Definition: CPTAnnotation.h:17
CPTAnnotation::annotationHostLayer
CPTAnnotationHostLayer * annotationHostLayer
The host layer for the annotation content.
Definition: CPTAnnotation.h:22
CPTAnnotation(AbstractMethods)
CPTAnnotation abstract methods—must be overridden by subclasses.
Definition: CPTAnnotation.h:40
-[CPTAnnotation init]
nonnull instancetype init()
Initializes a newly allocated CPTAnnotation object.
Definition: CPTAnnotation.m:56
CPTAnnotationHostLayer
A container layer for annotations.
Definition: CPTAnnotationHostLayer.h:5
CPTAnnotation::rotation
CGFloat rotation
The rotation of the label in radians.
Definition: CPTAnnotation.h:25
CPTLayer
Base class for all Core Animation layers in Core Plot.
Definition: CPTLayer.h:83
CPTDefinitions.h
CPTAnnotation::displacement
CGPoint displacement
The displacement from the layer anchor point.
Definition: CPTAnnotation.h:24
cpt_weak_property
#define cpt_weak_property
A custom definition for automatic reference counting (ARC) weak properties that falls back to assign ...
Definition: CPTDefinitions.h:32
-[CPTAnnotation(AbstractMethods) positionContentLayer]
void positionContentLayer()
Positions the content layer relative to its reference anchor.
Definition: CPTAnnotation.m:194
NSSecureCoding-p
NSCoder