javax.swing.plaf.metal
public class DefaultMetalTheme extends MetalTheme
MetalLookAndFeel
.Constructor and Description |
---|
DefaultMetalTheme()
Creates a new instance of this theme.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public DefaultMetalTheme()
public String getName()
getName
in class MetalTheme
"Steel"
.protected ColorUIResource getPrimary1()
getPrimary1
in class MetalTheme
protected ColorUIResource getPrimary2()
getPrimary2
in class MetalTheme
protected ColorUIResource getPrimary3()
getPrimary3
in class MetalTheme
protected ColorUIResource getSecondary1()
getSecondary1
in class MetalTheme
protected ColorUIResource getSecondary2()
getSecondary2
in class MetalTheme
protected ColorUIResource getSecondary3()
getSecondary3
in class MetalTheme
public FontUIResource getControlTextFont()
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)
.getControlTextFont
in class MetalTheme
public FontUIResource getMenuTextFont()
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)
.getMenuTextFont
in class MetalTheme
public FontUIResource getSubTextFont()
FontUIResource("Dialog", Font.PLAIN, 10)
.getSubTextFont
in class MetalTheme
public FontUIResource getSystemTextFont()
FontUIResource("Dialog", Font.PLAIN, 12)
.getSystemTextFont
in class MetalTheme
public FontUIResource getUserTextFont()
FontUIResource("Dialog", Font.PLAIN, 12)
.getUserTextFont
in class MetalTheme
public FontUIResource getWindowTitleFont()
FontUIResource("Dialog", Font.BOLD, 12)
.getWindowTitleFont
in class MetalTheme