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.
-
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.
-
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.
-
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.
-
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.
-
RLabel(ResourceStack)
- Construct a nameless RLabel.
-
RLabel(ResourceStack, String)
- Construct a RLabel with a particular name.
-
RLabel(String, int, ResourceStack)
-
Construct a nameless RLabel with some initial text and a
specific alignment.
-
RLabel(String, int, ResourceStack, String)
-
Construct a RLabel with some initial text, a particular
name, and a particular alignment.
-
RLabel(String, ResourceStack)
-
Construct a nameless RLabel with some initial text.
-
RLabel(String, ResourceStack, String)
-
Construct a RLabel with some initial text and a particular
name.
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
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
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.
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.
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.
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.
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
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.
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
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