public abstract class MetalTheme extends java.lang.Object
MetalLookAndFeel. A default
theme (DefaultMetalTheme) is provided, or you can create and use
your own.| Constructor and Description |
|---|
MetalTheme()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomEntriesToTable(javax.swing.UIDefaults table)
Adds custom entries to the UI defaults table.
|
javax.swing.plaf.ColorUIResource |
getAcceleratorForeground()
Returns the accelerator foreground color.
|
javax.swing.plaf.ColorUIResource |
getAcceleratorSelectedForeground()
Returns the accelerator selected foreground color.
|
protected javax.swing.plaf.ColorUIResource |
getBlack()
Returns the color used for black.
|
javax.swing.plaf.ColorUIResource |
getControl()
Returns the control color.
|
javax.swing.plaf.ColorUIResource |
getControlDarkShadow()
Returns the color used for dark shadows on controls.
|
javax.swing.plaf.ColorUIResource |
getControlDisabled()
Returns the color used for disabled controls.
|
javax.swing.plaf.ColorUIResource |
getControlHighlight()
Returns the color used to draw highlights for controls.
|
javax.swing.plaf.ColorUIResource |
getControlInfo()
Returns the color used to display control info.
|
javax.swing.plaf.ColorUIResource |
getControlShadow()
Returns the color used to draw shadows for controls.
|
javax.swing.plaf.ColorUIResource |
getControlTextColor()
Returns the color used for text on controls.
|
abstract javax.swing.plaf.FontUIResource |
getControlTextFont()
Returns the font used for text on controls.
|
javax.swing.plaf.ColorUIResource |
getDesktopColor()
Returns the color used for the desktop background.
|
javax.swing.plaf.ColorUIResource |
getFocusColor()
Returns the color used to draw focus highlights.
|
javax.swing.plaf.ColorUIResource |
getHighlightedTextColor()
Returns the color used to draw highlighted text.
|
javax.swing.plaf.ColorUIResource |
getInactiveControlTextColor()
Returns the color used to draw text on inactive controls.
|
javax.swing.plaf.ColorUIResource |
getInactiveSystemTextColor()
Returns the color used to draw inactive system text.
|
javax.swing.plaf.ColorUIResource |
getMenuBackground()
Returns the background color for menu items.
|
javax.swing.plaf.ColorUIResource |
getMenuDisabledForeground()
Returns the foreground color for disabled menu items.
|
javax.swing.plaf.ColorUIResource |
getMenuForeground()
Returns the foreground color for menu items.
|
javax.swing.plaf.ColorUIResource |
getMenuSelectedBackground()
Returns the background color for selected menu items.
|
javax.swing.plaf.ColorUIResource |
getMenuSelectedForeground()
Returns the foreground color for selected menu items.
|
abstract javax.swing.plaf.FontUIResource |
getMenuTextFont()
Returns the font used for text in menus.
|
abstract java.lang.String |
getName()
Returns the name of the theme.
|
protected abstract javax.swing.plaf.ColorUIResource |
getPrimary1()
Returns the first primary color for this theme.
|
protected abstract javax.swing.plaf.ColorUIResource |
getPrimary2()
Returns the second primary color for this theme.
|
protected abstract javax.swing.plaf.ColorUIResource |
getPrimary3()
Returns the third primary color for this theme.
|
javax.swing.plaf.ColorUIResource |
getPrimaryControl()
Returns the primary color for controls.
|
javax.swing.plaf.ColorUIResource |
getPrimaryControlDarkShadow()
Returns the primary color for the dark shadow on controls.
|
javax.swing.plaf.ColorUIResource |
getPrimaryControlHighlight()
Returns the primary color for the highlight on controls.
|
javax.swing.plaf.ColorUIResource |
getPrimaryControlInfo()
Returns the primary color for the information on controls.
|
javax.swing.plaf.ColorUIResource |
getPrimaryControlShadow()
Returns the primary color for the shadow on controls.
|
protected abstract javax.swing.plaf.ColorUIResource |
getSecondary1()
Returns the first secondary color for this theme.
|
protected abstract javax.swing.plaf.ColorUIResource |
getSecondary2()
Returns the second secondary color for this theme.
|
protected abstract javax.swing.plaf.ColorUIResource |
getSecondary3()
Returns the third secondary color for this theme.
|
javax.swing.plaf.ColorUIResource |
getSeparatorBackground()
Returns the background color for separators.
|
javax.swing.plaf.ColorUIResource |
getSeparatorForeground()
Returns the foreground color for separators.
|
abstract javax.swing.plaf.FontUIResource |
getSubTextFont()
Returns the font used for sub text.
|
javax.swing.plaf.ColorUIResource |
getSystemTextColor()
Returns the color used for system text.
|
abstract javax.swing.plaf.FontUIResource |
getSystemTextFont()
Returns the font used for system text.
|
javax.swing.plaf.ColorUIResource |
getTextHighlightColor()
Returns the color used to highlight text.
|
javax.swing.plaf.ColorUIResource |
getUserTextColor()
Returns the color used to display user text.
|
abstract javax.swing.plaf.FontUIResource |
getUserTextFont()
Returns the font used for user text.
|
protected javax.swing.plaf.ColorUIResource |
getWhite()
Returns the color used for white.
|
javax.swing.plaf.ColorUIResource |
getWindowBackground()
Returns the window background color.
|
javax.swing.plaf.ColorUIResource |
getWindowTitleBackground()
Returns the window title background color.
|
abstract javax.swing.plaf.FontUIResource |
getWindowTitleFont()
Returns the font used for window titles.
|
javax.swing.plaf.ColorUIResource |
getWindowTitleForeground()
Returns the window title foreground color.
|
javax.swing.plaf.ColorUIResource |
getWindowTitleInactiveBackground()
Returns the background color for an inactive window title.
|
javax.swing.plaf.ColorUIResource |
getWindowTitleInactiveForeground()
Returns the foreground color for an inactive window title.
|
public MetalTheme()
public abstract java.lang.String getName()
public void addCustomEntriesToTable(javax.swing.UIDefaults table)
table - the table.public javax.swing.plaf.ColorUIResource getAcceleratorForeground()
getPrimary1().public javax.swing.plaf.ColorUIResource getAcceleratorSelectedForeground()
getBlack().public javax.swing.plaf.ColorUIResource getControl()
getSecondary3().public javax.swing.plaf.ColorUIResource getControlDarkShadow()
getSecondary1().public javax.swing.plaf.ColorUIResource getControlDisabled()
getSecondary1().public javax.swing.plaf.ColorUIResource getControlHighlight()
getWhite().public javax.swing.plaf.ColorUIResource getControlInfo()
getBlack().public javax.swing.plaf.ColorUIResource getControlShadow()
getSecondary2().public javax.swing.plaf.ColorUIResource getControlTextColor()
getControlInfo().public javax.swing.plaf.ColorUIResource getDesktopColor()
getPrimary2().public javax.swing.plaf.ColorUIResource getFocusColor()
getPrimary2().public javax.swing.plaf.ColorUIResource getHighlightedTextColor()
getHighlightedTextColor().public javax.swing.plaf.ColorUIResource getInactiveControlTextColor()
getControlDisabled().public javax.swing.plaf.ColorUIResource getInactiveSystemTextColor()
getSecondary2().public javax.swing.plaf.ColorUIResource getMenuBackground()
getSecondary3().getMenuSelectedBackground()public javax.swing.plaf.ColorUIResource getMenuDisabledForeground()
getSecondary2().getMenuForeground()public javax.swing.plaf.ColorUIResource getMenuForeground()
getBlack().getMenuDisabledForeground(),
getMenuSelectedForeground()public javax.swing.plaf.ColorUIResource getMenuSelectedBackground()
getPrimary2().getMenuBackground()public javax.swing.plaf.ColorUIResource getMenuSelectedForeground()
getBlack().getMenuForeground()public javax.swing.plaf.ColorUIResource getPrimaryControl()
getPrimary3().public javax.swing.plaf.ColorUIResource getPrimaryControlDarkShadow()
getPrimary1().public javax.swing.plaf.ColorUIResource getPrimaryControlHighlight()
getWhite().public javax.swing.plaf.ColorUIResource getPrimaryControlInfo()
getBlack().public javax.swing.plaf.ColorUIResource getPrimaryControlShadow()
getPrimary2().public javax.swing.plaf.ColorUIResource getSeparatorBackground()
getWhite().public javax.swing.plaf.ColorUIResource getSeparatorForeground()
getPrimary1().public javax.swing.plaf.ColorUIResource getSystemTextColor()
getBlack().public javax.swing.plaf.ColorUIResource getTextHighlightColor()
getPrimary3().public javax.swing.plaf.ColorUIResource getUserTextColor()
getBlack().public javax.swing.plaf.ColorUIResource getWindowBackground()
getWhite().public javax.swing.plaf.ColorUIResource getWindowTitleBackground()
getPrimary3().public javax.swing.plaf.ColorUIResource getWindowTitleForeground()
getBlack().public javax.swing.plaf.ColorUIResource getWindowTitleInactiveBackground()
getSecondary3().public javax.swing.plaf.ColorUIResource getWindowTitleInactiveForeground()
getBlack().protected javax.swing.plaf.ColorUIResource getBlack()
protected javax.swing.plaf.ColorUIResource getWhite()
protected abstract javax.swing.plaf.ColorUIResource getPrimary1()
protected abstract javax.swing.plaf.ColorUIResource getPrimary2()
protected abstract javax.swing.plaf.ColorUIResource getPrimary3()
protected abstract javax.swing.plaf.ColorUIResource getSecondary1()
protected abstract javax.swing.plaf.ColorUIResource getSecondary2()
protected abstract javax.swing.plaf.ColorUIResource getSecondary3()
public abstract javax.swing.plaf.FontUIResource getControlTextFont()
public abstract javax.swing.plaf.FontUIResource getMenuTextFont()
public abstract javax.swing.plaf.FontUIResource getSubTextFont()
public abstract javax.swing.plaf.FontUIResource getSystemTextFont()
public abstract javax.swing.plaf.FontUIResource getUserTextFont()
public abstract javax.swing.plaf.FontUIResource getWindowTitleFont()