java.lang.Objectjavax.swing.plaf.metal.MetalTheme
Direct Known Subclasses:
DefaultMetalTheme, MetalHighContrastTheme, OceanTheme
{@code MetalTheme} is abstract, see {@code DefaultMetalTheme} and {@code OceanTheme} for concrete implementations.
{@code MetalLookAndFeel} maintains the current theme that the the {@code ComponentUI} implementations for metal use. Refer to MetalLookAndFeel.setCurrentTheme(MetalTheme) for details on changing the current theme.
{@code MetalTheme} provides a number of public methods for getting colors. These methods are implemented in terms of a handful of protected abstract methods. A subclass need only override the protected abstract methods ({@code getPrimary1}, {@code getPrimary2}, {@code getPrimary3}, {@code getSecondary1}, {@code getSecondary2}, and {@code getSecondary3}); although a subclass may override the other public methods for more control over the set of colors that are used.
Concrete implementations of {@code MetalTheme} must return {@code non-null} values from all methods. While the behavior of returning {@code null} is not specified, returning {@code null} will result in incorrect behavior.
It is strongly recommended that subclasses return completely opaque colors. To do otherwise may result in rendering problems, such as visual garbage.
Steve - Wilson| Field Summary | ||
|---|---|---|
| static final int | CONTROL_TEXT_FONT | |
| static final int | SYSTEM_TEXT_FONT | |
| static final int | USER_TEXT_FONT | |
| static final int | MENU_TEXT_FONT | |
| static final int | WINDOW_TITLE_FONT | |
| static final int | SUB_TEXT_FONT | |
| static ColorUIResource | white | |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.swing.plaf.metal.MetalTheme Detail: |
|---|
This implementation does nothing; it is provided for subclasses that wish to customize the defaults table. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|