Class AbstractLookAndFeel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AcrylLookAndFeel
,AeroLookAndFeel
,AluminiumLookAndFeel
,BernsteinLookAndFeel
,FastLookAndFeel
,GraphiteLookAndFeel
,HiFiLookAndFeel
,LunaLookAndFeel
,McWinLookAndFeel
,MintLookAndFeel
,NoireLookAndFeel
,SmartLookAndFeel
,TextureLookAndFeel
Abstract AbstractLookAndFeel class.
Author Michael Hagen- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static String
Constant currentThemeName="abstractTheme" -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorUIResource
getAlterBackgroundColor.static ColorUIResource
getBackgroundColor.abstract BorderFactory
getBorderFactory.static ColorUIResource
getButtonBackgroundColor.static ColorUIResource
getButtonColorDark.static ColorUIResource
getButtonColorLight.static ColorUIResource
getButtonForegroundColor.static ColorUIResource
getControlBackgroundColor.static ColorUIResource
getControlColorDark.static ColorUIResource
getControlColorLight.getControlDarkShadowColor.static ColorUIResource
getControlForegroundColor.getControlHighlightColor.getControlShadowColor.static MetalTheme
getCurrentTheme.static ColorUIResource
getDesktopColor.static ColorUIResource
getDisabledBackgroundColor.static ColorUIResource
getDisabledForegroundColor.static ColorUIResource
getFocusCellColor.static ColorUIResource
getFocusColor.static ColorUIResource
getForegroundColor.static ColorUIResource
getFrameColor.static ColorUIResource
getGridColor.abstract IconFactory
getIconFactory.static ColorUIResource
getInputBackgroundColor.static ColorUIResource
getInputForegroundColor.static ColorUIResource
getMenuBackgroundColor.static ColorUIResource
getMenuColorDark.static ColorUIResource
getMenuColorLight.static ColorUIResource
getMenuForegroundColor.static ColorUIResource
getMenuSelectionBackgroundColor.static ColorUIResource
getMenuSelectionForegroundColor.static ColorUIResource
getSelectionBackgroundColor.static ColorUIResource
getSelectionForegroundColor.static ColorUIResource
getTabAreaBackgroundColor.static ColorUIResource
getTabSelectionForegroundColor.static AbstractTheme
getTheme()
getTheme.getThemes.static ColorUIResource
getToolbarBackgroundColor.static ColorUIResource
getToolbarColorDark.static ColorUIResource
getToolbarColorLight.static ColorUIResource
getToolbarDockingColor.static ColorUIResource
getToolbarForegroundColor.static ColorUIResource
getTooltipBackgroundColor.static ColorUIResource
getTooltipForegroundColor.static ColorUIResource
getWindowBorderColor.static ColorUIResource
getWindowInactiveBorderColor.static ColorUIResource
getWindowInactiveTitleBackgroundColor.static ColorUIResource
getWindowInactiveTitleColorDark.static ColorUIResource
getWindowInactiveTitleColorLight.static ColorUIResource
getWindowInactiveTitleForegroundColor.static ColorUIResource
getWindowTitleBackgroundColor.static ColorUIResource
getWindowTitleColorDark.static ColorUIResource
getWindowTitleColorLight.static ColorUIResource
getWindowTitleForegroundColor.protected void
initComponentDefaults
(UIDefaults table) protected void
static boolean
isWindowDecorationOn.static void
setTheme
(AbstractTheme theme) setTheme.static void
Set a theme by name.Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getDefaults, getDescription, getDisabledIcon, getDisabledSelectedIcon, getHighlightedTextColor, getID, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getName, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, initClassDefaults, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentTheme
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initialize, loadSystemColors, playSound, uninitialize
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
-
Field Details
-
currentThemeName
Constant currentThemeName="abstractTheme"
-
-
Constructor Details
-
AbstractLookAndFeel
public AbstractLookAndFeel()
-
-
Method Details
-
getAlterBackgroundColor
getAlterBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getBackgroundColor
getBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getButtonBackgroundColor
getButtonBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getButtonColorDark
getButtonColorDark.
- Returns:
- a
ColorUIResource
object.
-
getButtonColorLight
getButtonColorLight.
- Returns:
- a
ColorUIResource
object.
-
getButtonForegroundColor
getButtonForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getControlBackgroundColor
getControlBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getControlColorDark
getControlColorDark.
- Returns:
- a
ColorUIResource
object.
-
getControlColorLight
getControlColorLight.
- Returns:
- a
ColorUIResource
object.
-
getControlForegroundColor
getControlForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getCurrentTheme
getCurrentTheme.
- Returns:
- a
MetalTheme
object.
-
getDesktopColor
getDesktopColor.
- Returns:
- a
ColorUIResource
object.
-
getDisabledBackgroundColor
getDisabledBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getDisabledForegroundColor
getDisabledForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getFocusCellColor
getFocusCellColor.
- Returns:
- a
ColorUIResource
object.
-
getFocusColor
getFocusColor.
- Returns:
- a
ColorUIResource
object.
-
getForegroundColor
getForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getFrameColor
getFrameColor.
- Returns:
- a
ColorUIResource
object.
-
getGridColor
getGridColor.
- Returns:
- a
ColorUIResource
object.
-
getInputBackgroundColor
getInputBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getInputForegroundColor
getInputForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getMenuBackgroundColor
getMenuBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getMenuColorDark
getMenuColorDark.
- Returns:
- a
ColorUIResource
object.
-
getMenuColorLight
getMenuColorLight.
- Returns:
- a
ColorUIResource
object.
-
getMenuForegroundColor
getMenuForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getMenuSelectionBackgroundColor
getMenuSelectionBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getMenuSelectionForegroundColor
getMenuSelectionForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getSelectionBackgroundColor
getSelectionBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getSelectionForegroundColor
getSelectionForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getTabAreaBackgroundColor
getTabAreaBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getTabSelectionForegroundColor
getTabSelectionForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getTheme
getTheme.
- Returns:
- a
AbstractTheme
object.
-
getThemes
getThemes.
- Returns:
- a
List
object.
-
getToolbarBackgroundColor
getToolbarBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getToolbarColorDark
getToolbarColorDark.
- Returns:
- a
ColorUIResource
object.
-
getToolbarColorLight
getToolbarColorLight.
- Returns:
- a
ColorUIResource
object.
-
getToolbarDockingColor
getToolbarDockingColor.
- Returns:
- a
ColorUIResource
object.
-
getToolbarForegroundColor
getToolbarForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getTooltipBackgroundColor
getTooltipBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getTooltipForegroundColor
getTooltipForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getWindowBorderColor
getWindowBorderColor.
- Returns:
- a
ColorUIResource
object.
-
getWindowInactiveBorderColor
getWindowInactiveBorderColor.
- Returns:
- a
ColorUIResource
object.
-
getWindowInactiveTitleBackgroundColor
getWindowInactiveTitleBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getWindowInactiveTitleColorDark
getWindowInactiveTitleColorDark.
- Returns:
- a
ColorUIResource
object.
-
getWindowInactiveTitleColorLight
getWindowInactiveTitleColorLight.
- Returns:
- a
ColorUIResource
object.
-
getWindowInactiveTitleForegroundColor
getWindowInactiveTitleForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
getWindowTitleBackgroundColor
getWindowTitleBackgroundColor.
- Returns:
- a
ColorUIResource
object.
-
getWindowTitleColorDark
getWindowTitleColorDark.
- Returns:
- a
ColorUIResource
object.
-
getWindowTitleColorLight
getWindowTitleColorLight.
- Returns:
- a
ColorUIResource
object.
-
getWindowTitleForegroundColor
getWindowTitleForegroundColor.
- Returns:
- a
ColorUIResource
object.
-
isWindowDecorationOn
public static boolean isWindowDecorationOn()isWindowDecorationOn.
- Returns:
- a boolean.
-
setTheme
setTheme.
- Parameters:
theme
- aAbstractTheme
object.
-
setTheme
Set a theme by name. Allowed themes may come from the list returned by getThemes- Parameters:
name
- the name of the theme
-
getBorderFactory
getBorderFactory.
- Returns:
- a
BorderFactory
object.
-
getControlDarkShadowColor
getControlDarkShadowColor.
- Returns:
- a
ColorUIResource
object.
-
getControlHighlightColor
getControlHighlightColor.
- Returns:
- a
ColorUIResource
object.
-
getControlShadowColor
getControlShadowColor.
- Returns:
- a
ColorUIResource
object.
-
getIconFactory
getIconFactory.
- Returns:
- a
IconFactory
object.
-
initComponentDefaults
- Overrides:
initComponentDefaults
in classMetalLookAndFeel
-
initSystemColorDefaults
- Overrides:
initSystemColorDefaults
in classMetalLookAndFeel
-