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

    baseBillboard

    The billboard this text label will be attached to.

    style

    The style that defines what this text label looks like.

    text

    The 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

    geometry

    The geometry object that defines the location of this text label.

    style

    The style that defines what this text label looks like.

    text

    The 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

    pos

    The map position that defines the location of this text label.

    style

    The style that defines what this text label looks like.

    text

    The 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

    text

    The 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

    style

    The new style that defines what this text label looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;