Class powersoft.jcm.ui.Label
All Packages Class Hierarchy This Package Previous Next Index
Class powersoft.jcm.ui.Label
java.lang.Object
|
+----powersoft.jcm.ui.Component
|
+----powersoft.jcm.ui.Label
- public class Label
- extends Component
-
CENTER
-
-
LEFT
-
-
RIGHT
-
-
Label()
-
-
createAWTComponent(Component)
-
-
getAlignment()
- Gets the alignment of the text of a label.
-
getText()
-
-
setAlignment(int)
- Sets the alignment of the text of a label.
-
setText(String)
-
CENTER
public final static int CENTER
LEFT
public final static int LEFT
RIGHT
public final static int RIGHT
Label
public Label()
getAlignment
public int getAlignment()
- Gets the alignment of the text of a label.
Notes:
When a label is created, the default alignment is
LEFT. See the Create method.
- Returns:
- One of the following values:
- LEFT
- Aligns the label's text to the left side of the rectangle.
- CENTER
- Centers the label's text in the rectangle.
- RIGHT
- Aligns the label's text to the right side of the rectangle.
setAlignment
public synchronized void setAlignment(int alignment)
- Sets the alignment of the text of a label.
Notes:
When a label is created, the default alignment is
LEFT. See the Create method.
- Parameters:
- alignment - The alignment of the label's text relative to its
rectangle. One of the following values:
- LEFT
- Aligns the label's text to the left side of the rectangle.
- CENTER
- Centers the label's text in the rectangle.
- RIGHT
- Aligns the label's text to the right side of the rectangle.
- See Also:
- create, getText, setText
getText
public String getText()
- Overrides:
- getText in class Component
setText
public synchronized void setText(String text)
- Overrides:
- setText in class Component
createAWTComponent
protected Component createAWTComponent(Component parent)
- Overrides:
- createAWTComponent in class Component
All Packages Class Hierarchy This Package Previous Next Index