javax.swing.plaf.metal
Class DefaultMetalTheme

java.lang.Object
  extended by javax.swing.plaf.metal.MetalTheme
      extended by javax.swing.plaf.metal.DefaultMetalTheme
Direct Known Subclasses:
OceanTheme

public class DefaultMetalTheme
extends MetalTheme

The default theme for the MetalLookAndFeel.

See Also:
MetalLookAndFeel.setCurrentTheme(MetalTheme)

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.
 
Methods inherited from class javax.swing.plaf.metal.MetalTheme
addCustomEntriesToTable, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMetalTheme

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

Method Detail

getName

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

Specified by:
getName in class MetalTheme
Returns:
"Steel".

getPrimary1

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

Specified by:
getPrimary1 in class MetalTheme
Returns:
The first primary color.

getPrimary2

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

Specified by:
getPrimary2 in class MetalTheme
Returns:
The second primary color.

getPrimary3

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

Specified by:
getPrimary3 in class MetalTheme
Returns:
The third primary color.

getSecondary1

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

Specified by:
getSecondary1 in class MetalTheme
Returns:
The first secondary color.

getSecondary2

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

Specified by:
getSecondary2 in class MetalTheme
Returns:
The second secondary color.

getSecondary3

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

Specified by:
getSecondary3 in class MetalTheme
Returns:
The third secondary color.

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 Boolean.FALSE in which case it is FontUIResource("Dialog", Font.PLAIN, 12).

Specified by:
getControlTextFont in class MetalTheme
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 Boolean.FALSE in which case it is FontUIResource("Dialog", Font.PLAIN, 12).

Specified by:
getMenuTextFont in class MetalTheme
Returns:
The font used for text in menus.

getSubTextFont

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

Specified by:
getSubTextFont in class MetalTheme
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).

Specified by:
getSystemTextFont in class MetalTheme
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).

Specified by:
getUserTextFont in class MetalTheme
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).

Specified by:
getWindowTitleFont in class MetalTheme
Returns:
The font used for window titles.