All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.RLabel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JLabel
                                   |
                                   +----com.sgi.sysadm.ui.RLabel

public class RLabel
extends JLabel
This class can be used wherever a JLabel would be used, but when it is desireable to control the font and color with resources.


Variable Index

 o COLOR
A resource <name>.color is a resource that specifies the color to use for the RLabel, where <name> is the name passed to the constructor.
 o DEFAULT_COLOR
A resource RLabel.color is a Color resource that specifies the default color to use for the RLabel if COLOR can't be found.
 o DEFAULT_FONT
A resource RLabel.font is a Font resource that specifies the default font to use for the RLabel if FONT can't be found.
 o FONT
A resource <name>.font is a resource that specifies the font to use for the RLabel, where <name> is the name passed to the constructor.

Constructor Index

 o RLabel(ResourceStack)
Construct a nameless RLabel.
 o RLabel(ResourceStack, String)
Construct a RLabel with a particular name.
 o RLabel(String, int, ResourceStack)
Construct a nameless RLabel with some initial text and a specific alignment.
 o RLabel(String, int, ResourceStack, String)
Construct a RLabel with some initial text, a particular name, and a particular alignment.
 o RLabel(String, ResourceStack)
Construct a nameless RLabel with some initial text.
 o RLabel(String, ResourceStack, String)
Construct a RLabel with some initial text and a particular name.

Variables

 o DEFAULT_FONT
 public static final String DEFAULT_FONT
A resource RLabel.font is a Font resource that specifies the default font to use for the RLabel if FONT can't be found.

See Also:
FONT
 o DEFAULT_COLOR
 public static final String DEFAULT_COLOR
A resource RLabel.color is a Color resource that specifies the default color to use for the RLabel if COLOR can't be found.

See Also:
COLOR
 o FONT
 public static final String FONT
A resource <name>.font is a resource that specifies the font to use for the RLabel, where <name> is the name passed to the constructor.

 o COLOR
 public static final String COLOR
A resource <name>.color is a resource that specifies the color to use for the RLabel, where <name> is the name passed to the constructor.

Constructors

 o RLabel
 public RLabel(ResourceStack rs)
Construct a nameless RLabel. DEFAULT_FONT and DEFAULT_COLOR will be used.

Parameters:
rs - The ResourceStack containing the resources to control this RLabel.
 o RLabel
 public RLabel(ResourceStack rs,
               String name)
Construct a RLabel with a particular name. The name will be used to lookup the FONT and COLOR resources.

Parameters:
rs - The ResourceStack containing the resources to control this RLabel.
name - The name of the RLabel.
 o RLabel
 public RLabel(String text,
               int horizontalAlignment,
               ResourceStack rs)
Construct a nameless RLabel with some initial text and a specific alignment. DEFAULT_FONT and DEFAULT_COLOR will be used. The alignment will be as specified.

Parameters:
text - The text to display in the RLabel
horizontalAlignment - The alignment for the text. See JLabel for the alignment options.
rs - The ResourceStack containing the resources to control this RLabel.
See Also:
JLabel
 o RLabel
 public RLabel(String text,
               ResourceStack rs)
Construct a nameless RLabel with some initial text. DEFAULT_FONT and DEFAULT_COLOR will be used.

Parameters:
text - The text to display in the RLabel
rs - The ResourceStack containing the resources to control this RLabel.
 o RLabel
 public RLabel(String text,
               int horizontalAlignment,
               ResourceStack rs,
               String name)
Construct a RLabel with some initial text, a particular name, and a particular alignment. The name will be used to lookup the FONT and COLOR resources. The alignment will be as specified.

Parameters:
text - The text to display in the RLabel
horizontalAlignment - The alignment for the text. See JLabel for the alignment options.
rs - The ResourceStack containing the resources to control this RLabel.
name - The name of the RLabel.
See Also:
JLabel
 o RLabel
 public RLabel(String text,
               ResourceStack rs,
               String name)
Construct a RLabel with some initial text and a particular name. The name will be used to lookup the FONT and COLOR resources.

Parameters:
text - The text to display in the RLabel
rs - The ResourceStack containing the resources to control this RLabel.
name - The name of the RLabel.
See Also:
JLabel

All Packages  Class Hierarchy  This Package  Previous  Next  Index