Fields
Name | Description |
---|---|
CENTER | Indicates that the label should be centered. |
LEFT | Indicates that the label should be left justified. |
RIGHT | Indicates that the label should be right justified. |
Constructors
Name | Description |
---|---|
Label() | Constructs an empty label. |
Label(String) | Constructs a new label with the specified string of text, left justified. |
Label(String, int) | Constructs a new label that presents the specified string of text with the specified alignment. |
Methods
Name | Description |
---|---|
addNotify() | Creates the peer for this label. |
getAlignment() | Gets the current alignment of this label. |
getText() | Gets the text of this label. |
paramString() | Returns the parameter string representing the state of this label. |
setAlignment(int) | Sets the alignment for this label to the specified alignment. |
setText(String) | Sets the text for this label to the specified text. |