Label

fun Label(    posX: Number = 0,     posY: Number = 0,     width: Number = DEFAULT_LABEL_WIDTH,     height: Number = DEFAULT_LABEL_HEIGHT,     text: String = "",     font: Font = Font(),     alignment: Alignment = Alignment.CENTER,     isWrapText: Boolean = false,     visual: Visual = Visual.EMPTY)

Creates a Label.

Parameters

posX

Horizontal coordinate for this Label. Default: 0.

posY

Vertical coordinate for this Label. Default: 0.

width

Width for this Label. Default: DEFAULT_LABEL_WIDTH.

height

Height for this Label. Default: DEFAULT_LABEL_HEIGHT.

text

Text for this Label. Default: empty String.

font

Font to be used for the text. Default: default Font constructor.

alignment

Alignment to be used for the text Default: Alignment.CENTER.

isWrapText

Defines if text should be wrapped. Default: false.

visual

Background Visual. Default: Visual.EMPTY