All Packages Class Hierarchy This Package Previous Next Index
Class cynosurex.awt.BorderedLabel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----cynosurex.awt.BorderedLabel
- public class BorderedLabel
- extends Container
- implements CommonInterface
Displays a label, surrounded by a border.
-
label
-
-
BorderedLabel(Label)
- Constructor to create the bordered label.
-
BorderedLabel(String)
- Constructor to create the bordered label.
-
BorderedLabel(String, int)
- Constructor to create the bordered label.
-
getAlignment()
- Returns the alignment of the text in the label.
-
getMinimumSize()
- Returns the minimum size of the component.
-
getPreferredSize()
- Returns the preferred size of the component.
-
getText()
- Returns the text of the label.
-
setAlignment(int)
- Set the alignment of the text in the label.
-
setText(String)
- Set text of the label.
label
protected Label label
BorderedLabel
public BorderedLabel(String text)
- Constructor to create the bordered label.
BorderedLabel
public BorderedLabel(String text,
int alignment)
- Constructor to create the bordered label.
BorderedLabel
public BorderedLabel(Label label)
- Constructor to create the bordered label.
getAlignment
public int getAlignment()
- Returns the alignment of the text in the label.
getText
public String getText()
- Returns the text of the label.
setAlignment
public void setAlignment(int alignment)
- Set the alignment of the text in the label.
setText
public void setText(String text)
- Set text of the label.
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size of the component.
- Overrides:
- getPreferredSize in class Container
getMinimumSize
public Dimension getMinimumSize()
- Returns the minimum size of the component.
- Overrides:
- getMinimumSize in class Container
All Packages Class Hierarchy This Package Previous Next Index