Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
An axis label. More...
#import <CPTAxisLabel.h>
Public Instance Methods | |
Initialization | |
(nonnull instancetype) | - initWithText:textStyle: |
Initializes a newly allocated text-based CPTAxisLabel object with the provided text and style. More... | |
(nonnull instancetype) | - initWithContentLayer: |
Initializes a newly allocated CPTAxisLabel object with the provided layer. This is the designated initializer. More... | |
(nullable instancetype) | - initWithCoder: |
Returns an object initialized from data in a given unarchiver. More... | |
Layout | |
(void) | - positionRelativeToViewPoint:forCoordinate:inDirection: |
Positions the axis label relative to the given point. The algorithm for positioning is different when the rotation property is non-zero. When zero, the anchor point is positioned along the closest side of the label. When non-zero, the anchor point is left at the center. This has consequences for the value taken by the offset. More... | |
(void) | - positionBetweenViewPoint:andViewPoint:forCoordinate:inDirection: |
Positions the axis label between two given points. More... | |
Comparison | |
(BOOL) | - isEqual: [implementation] |
Returns a boolean value that indicates whether the received is equal to the given object. Axis labels are equal if they have the same tickLocation. More... | |
Public Instance Methods inherited from NSObject | |
(Class) | - classForCoder |
(id) | - copy |
(void) | - dealloc |
(void) | - finalize |
(id) | - init |
(id) | - mutableCopy |
Public Instance Methods inherited from <NSObject> | |
(NSString *) | - description |
(NSUInteger) | - hash |
(BOOL) | - isEqual: |
Public Instance Methods inherited from <NSKeyValueBindingCreation> | |
(NSArray *) | - exposedBindings |
(Class) | - valueClassForBinding: |
(void) | - bind:toObject:withKeyPath:options: |
(NSArray *) | - optionDescriptionsForBinding: |
(NSDictionary *) | - infoForBinding: |
(void) | - unbind: |
Public Instance Methods inherited from <NSCoding> | |
(id) | - initWithCoder: |
(void) | - encodeWithCoder: |
Properties | |
CPTLayer * | contentLayer |
The label content. More... | |
CGFloat | offset |
The offset distance between the axis and label. More... | |
CGFloat | rotation |
The rotation of the label in radians. More... | |
CPTAlignment | alignment |
The alignment of the axis label with respect to the tick mark. More... | |
NSNumber * | tickLocation |
The data coordinate of the tick location. More... | |
Additional Inherited Members | |
Public Class Methods inherited from NSObject | |
(id) | + alloc |
(Class) | + class |
(void) | + initialize |
(void) | + load |
(id) | + new |
Public Class Methods inherited from <NSKeyValueBindingCreation> | |
(void) | + exposeBinding: |
Public Class Methods inherited from <NSSecureCoding> | |
(BOOL) | + supportsSecureCoding: |
An axis label.
The label can be text-based or can be the content of any CPTLayer provided by the user.
- (nullable instancetype) initWithCoder: | (nonnull NSCoder *) | coder |
Returns an object initialized from data in a given unarchiver.
coder | An unarchiver object. |
- (nonnull instancetype) initWithContentLayer: | (nonnull CPTLayer *) | layer |
Initializes a newly allocated CPTAxisLabel object with the provided layer. This is the designated initializer.
layer | The label content. |
- (nonnull instancetype) initWithText: | (nullable NSString *) | newText | |
textStyle: | (nullable CPTTextStyle *) | newStyle | |
Initializes a newly allocated text-based CPTAxisLabel object with the provided text and style.
newText | The label text. |
newStyle | The text style for the label. |
Returns a boolean value that indicates whether the received is equal to the given object. Axis labels are equal if they have the same tickLocation.
object | The object to be compared with the receiver. |
Reimplemented in CPTAxisTitle.
- (void) positionBetweenViewPoint: | (CGPoint) | firstPoint | |
andViewPoint: | (CGPoint) | secondPoint | |
forCoordinate: | (CPTCoordinate) | coordinate | |
inDirection: | (CPTSign) | direction | |
Positions the axis label between two given points.
firstPoint | The first view point. |
secondPoint | The second view point. |
coordinate | The axis coordinate. |
direction | The offset direction. |
- (void) positionRelativeToViewPoint: | (CGPoint) | point | |
forCoordinate: | (CPTCoordinate) | coordinate | |
inDirection: | (CPTSign) | direction | |
Positions the axis label relative to the given point. The algorithm for positioning is different when the rotation property is non-zero. When zero, the anchor point is positioned along the closest side of the label. When non-zero, the anchor point is left at the center. This has consequences for the value taken by the offset.
point | The view point. |
coordinate | The coordinate in which the label is being position. Orthogonal to the axis coordinate. |
direction | The offset direction. |
|
readwritenonatomicassign |
The alignment of the axis label with respect to the tick mark.
|
readwritenonatomicstrong |
The label content.
|
readwritenonatomicassign |
The offset distance between the axis and label.
|
readwritenonatomicassign |
The rotation of the label in radians.
|
readwritenonatomicstrong |
The data coordinate of the tick location.