javax.swing.plaf.metal
public class DefaultMetalTheme extends MetalTheme
See Also: setCurrentTheme
| Constructor Summary | |
|---|---|
| DefaultMetalTheme()
Creates a new instance of this theme. | |
| Method Summary | |
|---|---|
| FontUIResource | getControlTextFont()
Returns the font used for text on controls. |
| FontUIResource | getMenuTextFont()
Returns the font used for text in menus. |
| String | getName()
Returns the name of the theme.
|
| protected ColorUIResource | getPrimary1()
Returns the first primary color for this theme.
|
| protected ColorUIResource | getPrimary2()
Returns the second primary color for this theme.
|
| protected ColorUIResource | getPrimary3()
Returns the third primary color for this theme.
|
| protected ColorUIResource | getSecondary1()
Returns the first secondary color for this theme.
|
| protected ColorUIResource | getSecondary2()
Returns the second secondary color for this theme.
|
| protected ColorUIResource | getSecondary3()
Returns the third secondary color for this theme.
|
| FontUIResource | getSubTextFont()
Returns the font used for sub text. |
| FontUIResource | getSystemTextFont()
Returns the font used for system text. |
| FontUIResource | getUserTextFont()
Returns the font used for user text. |
| FontUIResource | getWindowTitleFont()
Returns the font used for window titles. |
FontUIResource("Dialog", Font.BOLD, 12), unless the
swing.boldMetal UI default is set to {@link Boolean#FALSE}
in which case it is FontUIResource("Dialog", Font.PLAIN, 12).
Returns: The font.
FontUIResource("Dialog", Font.BOLD, 12), unless the
swing.boldMetal UI default is set to {@link Boolean#FALSE}
in which case it is FontUIResource("Dialog", Font.PLAIN, 12).
Returns: The font used for text in menus.
Returns: "Steel".
Returns: The first primary color.
Returns: The second primary color.
Returns: The third primary color.
Returns: The first secondary color.
Returns: The second secondary color.
Returns: The third secondary color.
FontUIResource("Dialog", Font.PLAIN, 10).
Returns: The font used for sub text.
FontUIResource("Dialog", Font.PLAIN, 12).
Returns: The font used for system text.
FontUIResource("Dialog", Font.PLAIN, 12).
Returns: The font used for user text.
FontUIResource("Dialog", Font.BOLD, 12).
Returns: The font used for window titles.