Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.metal.MetalTheme
public abstract class MetalTheme
extends Object
MetalLookAndFeel
. A default
theme (DefaultMetalTheme
) is provided, or you can create and use
your own.
Constructor Summary | |
|
Method Summary | |
void |
|
ColorUIResource |
|
ColorUIResource |
|
protected ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
abstract FontUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
abstract FontUIResource |
|
abstract String |
|
protected abstract ColorUIResource |
|
protected abstract ColorUIResource |
|
protected abstract ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
protected abstract ColorUIResource |
|
protected abstract ColorUIResource |
|
protected abstract ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
abstract FontUIResource |
|
ColorUIResource |
|
abstract FontUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
abstract FontUIResource |
|
protected ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
abstract FontUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
ColorUIResource |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void addCustomEntriesToTable(UIDefaults table)
Adds custom entries to the UI defaults table. This method is empty.
- Parameters:
table
- the table.
public ColorUIResource getAcceleratorForeground()
Returns the accelerator foreground color. The default implementation returns the color fromgetPrimary1()
.
- Returns:
- The accelerator foreground color.
public ColorUIResource getAcceleratorSelectedForeground()
Returns the accelerator selected foreground color. The default implementation returns the color fromgetBlack()
.
- Returns:
- The accelerator selected foreground color.
protected ColorUIResource getBlack()
Returns the color used for black.
- Returns:
- The color used for black.
public ColorUIResource getControl()
Returns the control color. The default implementation returns the color fromgetSecondary3()
.
- Returns:
- The control color.
public ColorUIResource getControlDarkShadow()
Returns the color used for dark shadows on controls. The default implementation returns the color fromgetSecondary1()
.
- Returns:
- The color used for dark shadows on controls.
public ColorUIResource getControlDisabled()
Returns the color used for disabled controls. The default implementation returns the color fromgetSecondary1()
.
- Returns:
- The color used for disabled controls.
public ColorUIResource getControlHighlight()
Returns the color used to draw highlights for controls. The default implementation returns the color fromgetWhite()
.
- Returns:
- The color used to draw highlights for controls.
public ColorUIResource getControlInfo()
Returns the color used to display control info. The default implementation returns the color fromgetBlack()
.
- Returns:
- The color used to display control info.
public ColorUIResource getControlShadow()
Returns the color used to draw shadows for controls. The default implementation returns the color fromgetSecondary2()
.
- Returns:
- The color used to draw shadows for controls.
public ColorUIResource getControlTextColor()
Returns the color used for text on controls. The default implementation returns the color fromgetControlInfo()
.
- Returns:
- The color used for text on controls.
public abstract FontUIResource getControlTextFont()
Returns the font used for text on controls.
- Returns:
- The font used for text on controls.
public ColorUIResource getDesktopColor()
Returns the color used for the desktop background. The default implementation returns the color fromgetPrimary2()
.
- Returns:
- The color used for the desktop background.
public ColorUIResource getFocusColor()
Returns the color used to draw focus highlights. The default implementation returns the color fromgetPrimary2()
.
- Returns:
- The color used to draw focus highlights.
public ColorUIResource getHighlightedTextColor()
Returns the color used to draw highlighted text. The default implementation returns the color fromgetHighlightedTextColor()
.
- Returns:
- The color used to draw highlighted text.
public ColorUIResource getInactiveControlTextColor()
Returns the color used to draw text on inactive controls. The default implementation returns the color fromgetControlDisabled()
.
- Returns:
- The color used to draw text on inactive controls.
public ColorUIResource getInactiveSystemTextColor()
Returns the color used to draw inactive system text. The default implementation returns the color fromgetSecondary2()
.
- Returns:
- The color used to draw inactive system text.
public ColorUIResource getMenuBackground()
Returns the background color for menu items. The default implementation returns the color fromgetSecondary3()
.
- Returns:
- The background color for menu items.
- See Also:
getMenuSelectedBackground()
public ColorUIResource getMenuDisabledForeground()
Returns the foreground color for disabled menu items. The default implementation returns the color fromgetSecondary2()
.
- Returns:
- The foreground color for disabled menu items.
- See Also:
getMenuForeground()
public ColorUIResource getMenuForeground()
Returns the foreground color for menu items. The default implementation returns the color fromgetBlack()
.
- Returns:
- The foreground color for menu items.
public ColorUIResource getMenuSelectedBackground()
Returns the background color for selected menu items. The default implementation returns the color fromgetPrimary2()
.
- Returns:
- The background color for selected menu items.
- See Also:
getMenuBackground()
public ColorUIResource getMenuSelectedForeground()
Returns the foreground color for selected menu items. The default implementation returns the value fromgetBlack()
.
- Returns:
- The foreground color for selected menu items.
- See Also:
getMenuForeground()
public abstract FontUIResource getMenuTextFont()
Returns the font used for text in menus.
- Returns:
- The font used for text in menus.
public abstract String getName()
Returns the name of the theme.
- Returns:
- The name of the theme.
protected abstract ColorUIResource getPrimary1()
Returns the first primary color for this theme.
- Returns:
- The first primary color.
protected abstract ColorUIResource getPrimary2()
Returns the second primary color for this theme.
- Returns:
- The second primary color.
protected abstract ColorUIResource getPrimary3()
Returns the third primary color for this theme.
- Returns:
- The third primary color.
public ColorUIResource getPrimaryControl()
Returns the primary color for controls. The default implementation returns the color fromgetPrimary3()
.
- Returns:
- The primary color for controls.
public ColorUIResource getPrimaryControlDarkShadow()
Returns the primary color for the dark shadow on controls. The default implementation returns the color fromgetPrimary1()
.
- Returns:
- The primary color for the dark shadow on controls.
public ColorUIResource getPrimaryControlHighlight()
Returns the primary color for the highlight on controls. The default implementation returns the color fromgetWhite()
.
- Returns:
- The primary color for the highlight on controls.
public ColorUIResource getPrimaryControlInfo()
Returns the primary color for the information on controls. The default implementation returns the color fromgetBlack()
.
- Returns:
- The primary color for the information on controls.
public ColorUIResource getPrimaryControlShadow()
Returns the primary color for the shadow on controls. The default implementation returns the color fromgetPrimary2()
.
- Returns:
- The primary color for the shadow on controls.
protected abstract ColorUIResource getSecondary1()
Returns the first secondary color for this theme.
- Returns:
- The first secondary color.
protected abstract ColorUIResource getSecondary2()
Returns the second secondary color for this theme.
- Returns:
- The second secondary color.
protected abstract ColorUIResource getSecondary3()
Returns the third secondary color for this theme.
- Returns:
- The third secondary color.
public ColorUIResource getSeparatorBackground()
Returns the background color for separators. The default implementation returns the color fromgetWhite()
.
- Returns:
- The background color for separators.
public ColorUIResource getSeparatorForeground()
Returns the foreground color for separators. The default implementation returns the value fromgetPrimary1()
.
- Returns:
- The foreground color for separators.
public abstract FontUIResource getSubTextFont()
Returns the font used for sub text.
- Returns:
- The font used for sub text.
public ColorUIResource getSystemTextColor()
Returns the color used for system text. The default implementation returns the color fromgetBlack()
.
- Returns:
- The color used for system text.
public abstract FontUIResource getSystemTextFont()
Returns the font used for system text.
- Returns:
- The font used for system text.
public ColorUIResource getTextHighlightColor()
Returns the color used to highlight text. The default implementation returns the color fromgetPrimary3()
.
- Returns:
- The color used to highlight text.
public ColorUIResource getUserTextColor()
Returns the color used to display user text. The default implementation returns the color fromgetBlack()
.
- Returns:
- The color used to display user text.
public abstract FontUIResource getUserTextFont()
Returns the font used for user text.
- Returns:
- The font used for user text.
protected ColorUIResource getWhite()
Returns the color used for white.
- Returns:
- The color used for white.
public ColorUIResource getWindowBackground()
Returns the window background color. The default implementation returns the color fromgetWhite()
.
- Returns:
- The window background color.
public ColorUIResource getWindowTitleBackground()
Returns the window title background color. The default implementation returns the color fromgetPrimary3()
.
- Returns:
- The window title background color.
public abstract FontUIResource getWindowTitleFont()
Returns the font used for window titles.
- Returns:
- The font used for window titles.
public ColorUIResource getWindowTitleForeground()
Returns the window title foreground color. The default implementation returns the color fromgetBlack()
.
- Returns:
- The window title foreground color.
public ColorUIResource getWindowTitleInactiveBackground()
Returns the background color for an inactive window title. The default implementation returns the color fromgetSecondary3()
.
- Returns:
- The background color for an inactive window title.
public ColorUIResource getWindowTitleInactiveForeground()
Returns the foreground color for an inactive window title. The default implementation returns the color fromgetBlack()
.
- Returns:
- The foreground color for an inactive window title.