Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Mutable wrapper for text style properties. More...
#import <CPTMutableTextStyle.h>
Public Class Methods | |
(nonnull instancetype) | + textStyleWithAttributes: [implementation] |
Creates and returns a new CPTMutableTextStyle instance initialized from a dictionary of text attributes. More... | |
Public Class Methods inherited from CPTTextStyle | |
(nonnull instancetype) | + textStyle |
Creates and returns a new CPTTextStyle instance. More... | |
(nonnull instancetype) | + textStyleWithStyle: |
Creates and returns a new text style instance initialized from an existing text style. More... | |
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: |
Properties | |
CPTNativeFont * | font |
The font. Default is nil. More... | |
NSString * | fontName |
The font name. Default is Helvetica. Ignored if font is not nil. More... | |
CGFloat | fontSize |
The font size. Default is 12.0 . Ignored if font is not nil. More... | |
CPTColor * | color |
The current text color. Default is solid black. More... | |
CPTTextAlignment | textAlignment |
The paragraph alignment for multi-line text. Default is CPTTextAlignmentLeft. More... | |
NSLineBreakMode | lineBreakMode |
The line break mode used when laying out the text. Default is NSLineBreakByWordWrapping . More... | |
Properties inherited from CPTTextStyle | |
CPTNativeFont * | font |
The font. Default is nil. More... | |
NSString * | fontName |
The font name. Default is Helvetica. Ignored if font is not nil. More... | |
CGFloat | fontSize |
The font size. Default is 12.0 . Ignored if font is not nil. More... | |
CPTColor * | color |
The current text color. Default is solid black. More... | |
CPTTextAlignment | textAlignment |
The paragraph alignment for multi-line text. Default is CPTTextAlignmentLeft. More... | |
NSLineBreakMode | lineBreakMode |
The line break mode used when laying out the text. Default is NSLineBreakByWordWrapping . More... | |
CPTDictionary * | attributes |
A dictionary of standard text attributes suitable for formatting an NSAttributedString. More... | |
Additional Inherited Members | |
Public Instance Methods inherited from CPTTextStyle | |
(nonnull instancetype) | - init [implementation] |
Initializes a newly allocated CPTTextStyle object. 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 <NSCopying> | |
(id) | - copyWithZone: |
Public Instance Methods inherited from <NSMutableCopying> | |
(id) | - mutableCopyWithZone: |
Public Instance Methods inherited from <NSCoding> | |
(id) | - initWithCoder: |
(void) | - encodeWithCoder: |
Mutable wrapper for text style properties.
Use this whenever you need to customize the properties of a text style.
|
implementation |
Creates and returns a new CPTMutableTextStyle instance initialized from a dictionary of text attributes.
The text style will be initalized with values associated with the following keys:
Properties associated with missing keys will be inialized to their default values.
attributes | A dictionary of standard text attributes. |
Reimplemented from CPTTextStyle.
Provided by category CPTMutableTextStyle(CPTPlatformSpecificMutableTextStyleExtensions).
|
readwritenonatomiccopy |
The current text color. Default is solid black.
|
readwritenonatomicstrong |
|
readwritenonatomiccopy |
The font name. Default is Helvetica. Ignored if font is not nil.
|
readwritenonatomicassign |
The font size. Default is 12.0
. Ignored if font is not nil.
|
readwritenonatomicassign |
The line break mode used when laying out the text. Default is NSLineBreakByWordWrapping .
|
readwritenonatomicassign |
The paragraph alignment for multi-line text. Default is CPTTextAlignmentLeft.