Modifier and Type | Field and Description |
---|---|
static MetalTheme |
AQUA
Much like
DEFAULT , but uses some blue-green colors. |
static MetalTheme |
DEFAULT
A theme identical to the default Java look-and-feel, but whose name
is "Default" instead of the cryptic "Steel", and which provides a
toString method (required if Theme objects
passed to a combo box).
|
static MetalTheme |
LARGE_FONT
Differs from
DEFAULT only in font sizes. |
static MetalTheme |
LOW_VISION
Large fonts, and high contrast black and white colors.
|
static List<MetalTheme> |
VALUES
Allows user to iterate over all elements of this enumeration.
|
Constructor and Description |
---|
Theme() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasLargeFont(MetalTheme aTheme)
Return true if aTheme uses a larger font than the default; this is the
case only for LARGE_FONT and LOW_VISION.
|
static MetalTheme |
valueOf(String aText)
Convert aText into its corresponding Theme object,
if possible.
|
public static final MetalTheme DEFAULT
public static final MetalTheme AQUA
DEFAULT
, but uses some blue-green colors.public static final MetalTheme LARGE_FONT
DEFAULT
only in font sizes.public static final MetalTheme LOW_VISION
This is an amalgam of two example themes from the JDK swing examples ; there is apparently no recommended standard for a low-vision theme.
public static final List<MetalTheme> VALUES
public Theme()
public static MetalTheme valueOf(String aText)
aText
- possibly-null text which may map to a Theme.IllegalArgumentException
- if aText cannot be
matched to a known theme.public static boolean hasLargeFont(MetalTheme aTheme)
Themes with large font sizes need particular care, as their use may require changes outside those provided through SwingUtilities.updateComponentTreeUI.
Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58