javax.swing.plaf.metal

Class DefaultMetalTheme

public class DefaultMetalTheme extends MetalTheme

The default theme for the {@link MetalLookAndFeel}.

See Also: setCurrentTheme

Constructor Summary
DefaultMetalTheme()
Creates a new instance of this theme.
Method Summary
FontUIResourcegetControlTextFont()
Returns the font used for text on controls.
FontUIResourcegetMenuTextFont()
Returns the font used for text in menus.
StringgetName()
Returns the name of the theme.
protected ColorUIResourcegetPrimary1()
Returns the first primary color for this theme.
protected ColorUIResourcegetPrimary2()
Returns the second primary color for this theme.
protected ColorUIResourcegetPrimary3()
Returns the third primary color for this theme.
protected ColorUIResourcegetSecondary1()
Returns the first secondary color for this theme.
protected ColorUIResourcegetSecondary2()
Returns the second secondary color for this theme.
protected ColorUIResourcegetSecondary3()
Returns the third secondary color for this theme.
FontUIResourcegetSubTextFont()
Returns the font used for sub text.
FontUIResourcegetSystemTextFont()
Returns the font used for system text.
FontUIResourcegetUserTextFont()
Returns the font used for user text.
FontUIResourcegetWindowTitleFont()
Returns the font used for window titles.

Constructor Detail

DefaultMetalTheme

public DefaultMetalTheme()
Creates a new instance of this theme.

Method Detail

getControlTextFont

public FontUIResource getControlTextFont()
Returns the font used for text on controls. In this case, the font is 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.

getMenuTextFont

public FontUIResource getMenuTextFont()
Returns the font used for text in menus. In this case, the font is 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.

getName

public String getName()
Returns the name of the theme.

Returns: "Steel".

getPrimary1

protected ColorUIResource getPrimary1()
Returns the first primary color for this theme.

Returns: The first primary color.

getPrimary2

protected ColorUIResource getPrimary2()
Returns the second primary color for this theme.

Returns: The second primary color.

getPrimary3

protected ColorUIResource getPrimary3()
Returns the third primary color for this theme.

Returns: The third primary color.

getSecondary1

protected ColorUIResource getSecondary1()
Returns the first secondary color for this theme.

Returns: The first secondary color.

getSecondary2

protected ColorUIResource getSecondary2()
Returns the second secondary color for this theme.

Returns: The second secondary color.

getSecondary3

protected ColorUIResource getSecondary3()
Returns the third secondary color for this theme.

Returns: The third secondary color.

getSubTextFont

public FontUIResource getSubTextFont()
Returns the font used for sub text. In this case, the font is FontUIResource("Dialog", Font.PLAIN, 10).

Returns: The font used for sub text.

getSystemTextFont

public FontUIResource getSystemTextFont()
Returns the font used for system text. In this case, the font is FontUIResource("Dialog", Font.PLAIN, 12).

Returns: The font used for system text.

getUserTextFont

public FontUIResource getUserTextFont()
Returns the font used for user text. In this case, the font is FontUIResource("Dialog", Font.PLAIN, 12).

Returns: The font used for user text.

getWindowTitleFont

public FontUIResource getWindowTitleFont()
Returns the font used for window titles. In this case, the font is FontUIResource("Dialog", Font.BOLD, 12).

Returns: The font used for window titles.