|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTheme
public final class Theme
Defines all themes which can allow the user to customize the Java Look and Feel.
This application uses only the cross-platform Java Look-and-Feel, and never attempts to adapt to the native look-and-feel (Windows, Metal, Mac).
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Theme()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Theme()
| Method Detail |
|---|
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.
|
StocksMonitor 1.5.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||