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
FieldsModifier and TypeFieldDescriptionprotected static StringConstant currentThemeName="abstractTheme" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorUIResourcegetAlterBackgroundColor.static ColorUIResourcegetBackgroundColor.abstract BorderFactorygetBorderFactory.static ColorUIResourcegetButtonBackgroundColor.static ColorUIResourcegetButtonColorDark.static ColorUIResourcegetButtonColorLight.static ColorUIResourcegetButtonForegroundColor.static ColorUIResourcegetControlBackgroundColor.static ColorUIResourcegetControlColorDark.static ColorUIResourcegetControlColorLight.getControlDarkShadowColor.static ColorUIResourcegetControlForegroundColor.getControlHighlightColor.getControlShadowColor.static MetalThemegetCurrentTheme.static ColorUIResourcegetDesktopColor.static ColorUIResourcegetDisabledBackgroundColor.static ColorUIResourcegetDisabledForegroundColor.static ColorUIResourcegetFocusCellColor.static ColorUIResourcegetFocusColor.static ColorUIResourcegetForegroundColor.static ColorUIResourcegetFrameColor.static ColorUIResourcegetGridColor.abstract IconFactorygetIconFactory.static ColorUIResourcegetInputBackgroundColor.static ColorUIResourcegetInputForegroundColor.static ColorUIResourcegetMenuBackgroundColor.static ColorUIResourcegetMenuColorDark.static ColorUIResourcegetMenuColorLight.static ColorUIResourcegetMenuForegroundColor.static ColorUIResourcegetMenuSelectionBackgroundColor.static ColorUIResourcegetMenuSelectionForegroundColor.static ColorUIResourcegetSelectionBackgroundColor.static ColorUIResourcegetSelectionForegroundColor.static ColorUIResourcegetTabAreaBackgroundColor.static ColorUIResourcegetTabSelectionForegroundColor.static AbstractThemegetTheme()getTheme.getThemes.static ColorUIResourcegetToolbarBackgroundColor.static ColorUIResourcegetToolbarColorDark.static ColorUIResourcegetToolbarColorLight.static ColorUIResourcegetToolbarDockingColor.static ColorUIResourcegetToolbarForegroundColor.static ColorUIResourcegetTooltipBackgroundColor.static ColorUIResourcegetTooltipForegroundColor.static ColorUIResourcegetWindowBorderColor.static ColorUIResourcegetWindowInactiveBorderColor.static ColorUIResourcegetWindowInactiveTitleBackgroundColor.static ColorUIResourcegetWindowInactiveTitleColorDark.static ColorUIResourcegetWindowInactiveTitleColorLight.static ColorUIResourcegetWindowInactiveTitleForegroundColor.static ColorUIResourcegetWindowTitleBackgroundColor.static ColorUIResourcegetWindowTitleColorDark.static ColorUIResourcegetWindowTitleColorLight.static ColorUIResourcegetWindowTitleForegroundColor.protected voidinitComponentDefaults(UIDefaults table) protected voidstatic booleanisWindowDecorationOn.static voidsetTheme(AbstractTheme theme) setTheme.static voidSet 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, setCurrentThemeMethods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initialize, loadSystemColors, playSound, uninitializeMethods 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
ColorUIResourceobject.
-
getBackgroundColor
getBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getButtonBackgroundColor
getButtonBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getButtonColorDark
getButtonColorDark.
- Returns:
- a
ColorUIResourceobject.
-
getButtonColorLight
getButtonColorLight.
- Returns:
- a
ColorUIResourceobject.
-
getButtonForegroundColor
getButtonForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getControlBackgroundColor
getControlBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getControlColorDark
getControlColorDark.
- Returns:
- a
ColorUIResourceobject.
-
getControlColorLight
getControlColorLight.
- Returns:
- a
ColorUIResourceobject.
-
getControlForegroundColor
getControlForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getCurrentTheme
getCurrentTheme.
- Returns:
- a
MetalThemeobject.
-
getDesktopColor
getDesktopColor.
- Returns:
- a
ColorUIResourceobject.
-
getDisabledBackgroundColor
getDisabledBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getDisabledForegroundColor
getDisabledForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getFocusCellColor
getFocusCellColor.
- Returns:
- a
ColorUIResourceobject.
-
getFocusColor
getFocusColor.
- Returns:
- a
ColorUIResourceobject.
-
getForegroundColor
getForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getFrameColor
getFrameColor.
- Returns:
- a
ColorUIResourceobject.
-
getGridColor
getGridColor.
- Returns:
- a
ColorUIResourceobject.
-
getInputBackgroundColor
getInputBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getInputForegroundColor
getInputForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getMenuBackgroundColor
getMenuBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getMenuColorDark
getMenuColorDark.
- Returns:
- a
ColorUIResourceobject.
-
getMenuColorLight
getMenuColorLight.
- Returns:
- a
ColorUIResourceobject.
-
getMenuForegroundColor
getMenuForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getMenuSelectionBackgroundColor
getMenuSelectionBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getMenuSelectionForegroundColor
getMenuSelectionForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getSelectionBackgroundColor
getSelectionBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getSelectionForegroundColor
getSelectionForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getTabAreaBackgroundColor
getTabAreaBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getTabSelectionForegroundColor
getTabSelectionForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getTheme
getTheme.
- Returns:
- a
AbstractThemeobject.
-
getThemes
getThemes.
- Returns:
- a
Listobject.
-
getToolbarBackgroundColor
getToolbarBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getToolbarColorDark
getToolbarColorDark.
- Returns:
- a
ColorUIResourceobject.
-
getToolbarColorLight
getToolbarColorLight.
- Returns:
- a
ColorUIResourceobject.
-
getToolbarDockingColor
getToolbarDockingColor.
- Returns:
- a
ColorUIResourceobject.
-
getToolbarForegroundColor
getToolbarForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getTooltipBackgroundColor
getTooltipBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getTooltipForegroundColor
getTooltipForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getWindowBorderColor
getWindowBorderColor.
- Returns:
- a
ColorUIResourceobject.
-
getWindowInactiveBorderColor
getWindowInactiveBorderColor.
- Returns:
- a
ColorUIResourceobject.
-
getWindowInactiveTitleBackgroundColor
getWindowInactiveTitleBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getWindowInactiveTitleColorDark
getWindowInactiveTitleColorDark.
- Returns:
- a
ColorUIResourceobject.
-
getWindowInactiveTitleColorLight
getWindowInactiveTitleColorLight.
- Returns:
- a
ColorUIResourceobject.
-
getWindowInactiveTitleForegroundColor
getWindowInactiveTitleForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getWindowTitleBackgroundColor
getWindowTitleBackgroundColor.
- Returns:
- a
ColorUIResourceobject.
-
getWindowTitleColorDark
getWindowTitleColorDark.
- Returns:
- a
ColorUIResourceobject.
-
getWindowTitleColorLight
getWindowTitleColorLight.
- Returns:
- a
ColorUIResourceobject.
-
getWindowTitleForegroundColor
getWindowTitleForegroundColor.
- Returns:
- a
ColorUIResourceobject.
-
isWindowDecorationOn
public static boolean isWindowDecorationOn()isWindowDecorationOn.
- Returns:
- a boolean.
-
setTheme
setTheme.
- Parameters:
theme- aAbstractThemeobject.
-
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
BorderFactoryobject.
-
getControlDarkShadowColor
getControlDarkShadowColor.
- Returns:
- a
ColorUIResourceobject.
-
getControlHighlightColor
getControlHighlightColor.
- Returns:
- a
ColorUIResourceobject.
-
getControlShadowColor
getControlShadowColor.
- Returns:
- a
ColorUIResourceobject.
-
getIconFactory
getIconFactory.
- Returns:
- a
IconFactoryobject.
-
initComponentDefaults
- Overrides:
initComponentDefaultsin classMetalLookAndFeel
-
initSystemColorDefaults
- Overrides:
initSystemColorDefaultsin classMetalLookAndFeel
-