NTText
@interface NTText : NTLabel
A text element that can be displayed on the map.
-
Constructs a Text object with the specified style and attaches it to a billboard element.
Declaration
Objective-C
- (id)initWithBaseBillboard:(NTBillboard *)baseBillboard style:(NTTextStyle *)style text:(NSString *)text;Parameters
baseBillboardThe billboard this text label will be attached to.
styleThe style that defines what this text label looks like.
textThe text to be displayed.
-
Constructs a Text object from a geometry object and a style.
Declaration
Objective-C
- (id)initWithGeometry:(NTGeometry *)geometry style:(NTTextStyle *)style text:(NSString *)text;Parameters
geometryThe geometry object that defines the location of this text label.
styleThe style that defines what this text label looks like.
textThe text to be displayed.
-
Constructs a Text object from a map position and a style.
Declaration
Objective-C
- (id)initWithPos:(NTMapPos *)pos style:(NTTextStyle *)style text:(NSString *)text;Parameters
posThe map position that defines the location of this text label.
styleThe style that defines what this text label looks like.
textThe text to be displayed.
-
Undocumented
Declaration
Objective-C
- (NTBitmap *)drawBitmap:(float)dpToPX; -
Returns the display text.
Declaration
Objective-C
- (NSString *)getText;Return Value
The display text.
-
Sets the display text.
Declaration
Objective-C
- (void)setText:(NSString *)text;Parameters
textThe text to be displayed.
-
Returns the style of this text label.
Declaration
Objective-C
- (NTTextStyle *)getStyle;Return Value
The style that defines what this text label looks like.
-
Sets the style for this text label.
Declaration
Objective-C
- (void)setStyle:(NTTextStyle *)style;Parameters
styleThe new style that defines what this text label looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTText Class Reference