Skip to content
Paavo Bennett edited this page Aug 24, 2015 · 11 revisions

Constructor Summary

Label()
Label(String text)

Method Summary

Number getHorizontalAlignment()

Gets the horizontal alignment for the label. Default is LAH_Justify.

void setHorizontalAlignment(Number horizontalAlignment)

Sets the horizontal alignment for the label. Options are: LAH_Justify, LAH_Left, LAH_Center, and LAH_Right.

Number getVerticalAlignment()

Gets the vertical alignment for the label. Default is LAV_None.

void setVerticalAlignment(Number verticalAlignment)

Sets the vertical alignment for the label. Options are: LAV_None, LAV_Top, LAV_Center, and LAV_Bottom.

Boolean isBolded()

Gets whether the label is bolded. Default is false.

void setBolded(Boolean isBolded)

Sets whether the label is bolded.

Boolean isItalicized()

Gets whether the label is italicized. Default is false.

void setItalicized(Boolean isItalicized)

Sets whether the label is italicized.

Number getFontSize()

Gets the font size of the label. Default is 12.

void setFontSize(Number fontSize)

Sets the font size of the label.

String getText()

Gets the text of the label. Default is "".

void setText(String text)

Sets the text of the label. Options are: "$<ModID>:<LocStringID>", and "$<LocStringID>".

void onAdd(String path)

Adds the label to the given path. Do not call this method, it is called automatically by the adding Control.

Inherited Method Summary

See Control

Clone this wiki locally