public abstract class MetalTheme extends 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(UIDefaults table)
Adds custom entries to the UI defaults table.
|
ColorUIResource |
getAcceleratorForeground()
Returns the accelerator foreground color.
|
ColorUIResource |
getAcceleratorSelectedForeground()
Returns the accelerator selected foreground color.
|
protected ColorUIResource |
getBlack()
Returns the color used for black.
|
ColorUIResource |
getControl()
Returns the control color.
|
ColorUIResource |
getControlDarkShadow()
Returns the color used for dark shadows on controls.
|
ColorUIResource |
getControlDisabled()
Returns the color used for disabled controls.
|
ColorUIResource |
getControlHighlight()
Returns the color used to draw highlights for controls.
|
ColorUIResource |
getControlInfo()
Returns the color used to display control info.
|
ColorUIResource |
getControlShadow()
Returns the color used to draw shadows for controls.
|
ColorUIResource |
getControlTextColor()
Returns the color used for text on controls.
|
abstract FontUIResource |
getControlTextFont()
Returns the font used for text on controls.
|
ColorUIResource |
getDesktopColor()
Returns the color used for the desktop background.
|
ColorUIResource |
getFocusColor()
Returns the color used to draw focus highlights.
|
ColorUIResource |
getHighlightedTextColor()
Returns the color used to draw highlighted text.
|
ColorUIResource |
getInactiveControlTextColor()
Returns the color used to draw text on inactive controls.
|
ColorUIResource |
getInactiveSystemTextColor()
Returns the color used to draw inactive system text.
|
ColorUIResource |
getMenuBackground()
Returns the background color for menu items.
|
ColorUIResource |
getMenuDisabledForeground()
Returns the foreground color for disabled menu items.
|
ColorUIResource |
getMenuForeground()
Returns the foreground color for menu items.
|
ColorUIResource |
getMenuSelectedBackground()
Returns the background color for selected menu items.
|
ColorUIResource |
getMenuSelectedForeground()
Returns the foreground color for selected menu items.
|
abstract FontUIResource |
getMenuTextFont()
Returns the font used for text in menus.
|
abstract String |
getName()
Returns the name of the theme.
|
protected abstract ColorUIResource |
getPrimary1()
Returns the first primary color for this theme.
|
protected abstract ColorUIResource |
getPrimary2()
Returns the second primary color for this theme.
|
protected abstract ColorUIResource |
getPrimary3()
Returns the third primary color for this theme.
|
ColorUIResource |
getPrimaryControl()
Returns the primary color for controls.
|
ColorUIResource |
getPrimaryControlDarkShadow()
Returns the primary color for the dark shadow on controls.
|
ColorUIResource |
getPrimaryControlHighlight()
Returns the primary color for the highlight on controls.
|
ColorUIResource |
getPrimaryControlInfo()
Returns the primary color for the information on controls.
|
ColorUIResource |
getPrimaryControlShadow()
Returns the primary color for the shadow on controls.
|
protected abstract ColorUIResource |
getSecondary1()
Returns the first secondary color for this theme.
|
protected abstract ColorUIResource |
getSecondary2()
Returns the second secondary color for this theme.
|
protected abstract ColorUIResource |
getSecondary3()
Returns the third secondary color for this theme.
|
ColorUIResource |
getSeparatorBackground()
Returns the background color for separators.
|
ColorUIResource |
getSeparatorForeground()
Returns the foreground color for separators.
|
abstract FontUIResource |
getSubTextFont()
Returns the font used for sub text.
|
ColorUIResource |
getSystemTextColor()
Returns the color used for system text.
|
abstract FontUIResource |
getSystemTextFont()
Returns the font used for system text.
|
ColorUIResource |
getTextHighlightColor()
Returns the color used to highlight text.
|
ColorUIResource |
getUserTextColor()
Returns the color used to display user text.
|
abstract FontUIResource |
getUserTextFont()
Returns the font used for user text.
|
protected ColorUIResource |
getWhite()
Returns the color used for white.
|
ColorUIResource |
getWindowBackground()
Returns the window background color.
|
ColorUIResource |
getWindowTitleBackground()
Returns the window title background color.
|
abstract FontUIResource |
getWindowTitleFont()
Returns the font used for window titles.
|
ColorUIResource |
getWindowTitleForeground()
Returns the window title foreground color.
|
ColorUIResource |
getWindowTitleInactiveBackground()
Returns the background color for an inactive window title.
|
ColorUIResource |
getWindowTitleInactiveForeground()
Returns the foreground color for an inactive window title.
|
public MetalTheme()
public abstract String getName()
public void addCustomEntriesToTable(UIDefaults table)
table
- the table.public ColorUIResource getAcceleratorForeground()
getPrimary1()
.public ColorUIResource getAcceleratorSelectedForeground()
getBlack()
.public ColorUIResource getControl()
getSecondary3()
.public ColorUIResource getControlDarkShadow()
getSecondary1()
.public ColorUIResource getControlDisabled()
getSecondary1()
.public ColorUIResource getControlHighlight()
getWhite()
.public ColorUIResource getControlInfo()
getBlack()
.public ColorUIResource getControlShadow()
getSecondary2()
.public ColorUIResource getControlTextColor()
getControlInfo()
.public ColorUIResource getDesktopColor()
getPrimary2()
.public ColorUIResource getFocusColor()
getPrimary2()
.public ColorUIResource getHighlightedTextColor()
getHighlightedTextColor()
.public ColorUIResource getInactiveControlTextColor()
getControlDisabled()
.public ColorUIResource getInactiveSystemTextColor()
getSecondary2()
.public ColorUIResource getMenuBackground()
getSecondary3()
.getMenuSelectedBackground()
public ColorUIResource getMenuDisabledForeground()
getSecondary2()
.getMenuForeground()
public ColorUIResource getMenuForeground()
getBlack()
.getMenuDisabledForeground()
,
getMenuSelectedForeground()
public ColorUIResource getMenuSelectedBackground()
getPrimary2()
.getMenuBackground()
public ColorUIResource getMenuSelectedForeground()
getBlack()
.getMenuForeground()
public ColorUIResource getPrimaryControl()
getPrimary3()
.public ColorUIResource getPrimaryControlDarkShadow()
getPrimary1()
.public ColorUIResource getPrimaryControlHighlight()
getWhite()
.public ColorUIResource getPrimaryControlInfo()
getBlack()
.public ColorUIResource getPrimaryControlShadow()
getPrimary2()
.public ColorUIResource getSeparatorBackground()
getWhite()
.public ColorUIResource getSeparatorForeground()
getPrimary1()
.public ColorUIResource getSystemTextColor()
getBlack()
.public ColorUIResource getTextHighlightColor()
getPrimary3()
.public ColorUIResource getUserTextColor()
getBlack()
.public ColorUIResource getWindowBackground()
getWhite()
.public ColorUIResource getWindowTitleBackground()
getPrimary3()
.public ColorUIResource getWindowTitleForeground()
getBlack()
.public ColorUIResource getWindowTitleInactiveBackground()
getSecondary3()
.public ColorUIResource getWindowTitleInactiveForeground()
getBlack()
.protected ColorUIResource getBlack()
protected ColorUIResource getWhite()
protected abstract ColorUIResource getPrimary1()
protected abstract ColorUIResource getPrimary2()
protected abstract ColorUIResource getPrimary3()
protected abstract ColorUIResource getSecondary1()
protected abstract ColorUIResource getSecondary2()
protected abstract ColorUIResource getSecondary3()
public abstract FontUIResource getControlTextFont()
public abstract FontUIResource getMenuTextFont()
public abstract FontUIResource getSubTextFont()
public abstract FontUIResource getSystemTextFont()
public abstract FontUIResource getUserTextFont()
public abstract FontUIResource getWindowTitleFont()