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

Variable Index

 o CENTER
 o LEFT
 o RIGHT

Constructor Index

 o Label()

Method Index

 o createAWTComponent(Component)
 o getAlignment()
Gets the alignment of the text of a label.
 o getText()
 o setAlignment(int)
Sets the alignment of the text of a label.
 o setText(String)

Variables

 o CENTER
  public final static int CENTER
 o LEFT
  public final static int LEFT
 o RIGHT
  public final static int RIGHT

Constructors

 o Label
  public Label()

Methods

 o 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.
 o 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
 o getText
  public String getText()
Overrides:
getText in class Component
 o setText
  public synchronized void setText(String text)
Overrides:
setText in class Component
 o createAWTComponent
  protected Component createAWTComponent(Component parent)
Overrides:
createAWTComponent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index