public class PlasticLookAndFeel extends MetalLookAndFeel
| Modifier and Type | Field and Description | 
|---|---|
| static String | BORDER_STYLE_KEYClient property key to set a border style - shadows the header style. | 
| static String | DEFAULT_THEME_KEYA System property key to set the default theme. | 
| static String | HIGH_CONTRAST_FOCUS_ENABLED_KEYA System property key that indicates that the high contrast
 focus colors shall be choosen - if applicable. | 
| static String | IS_3D_KEYClient property key to disable the pseudo 3D effect. | 
| static String | TAB_STYLE_DEFAULT_VALUEA System property value that indicates that Plastic shall render
 tabs in the Plastic 1.0 style. | 
| protected static String | TAB_STYLE_KEYA System property key for the rendering style of the Plastic
 TabbedPane. | 
| static String | TAB_STYLE_METAL_VALUEA System property value that indicates that Plastic shall
 render tabs in the Metal L&F style. | 
| Constructor and Description | 
|---|
| PlasticLookAndFeel()Constructs the PlasticLookAndFeel, creates the default theme
 and sets it as current Plastic theme. | 
| Modifier and Type | Method and Description | 
|---|---|
| static PlasticTheme | createMyDefaultTheme()Creates and returns the default color theme. | 
| protected static PlasticTheme | createTheme(String themeName)Creates and returns a color theme from the specified theme name. | 
| static ColorUIResource | getControl() | 
| static ColorUIResource | getControlDarkShadow() | 
| static ColorUIResource | getControlHighlight() | 
| String | getDescription() | 
| Icon | getDisabledIcon(JComponent component,
               Icon icon)Returns an icon with a disabled appearance. | 
| static ColorUIResource | getFocusColor() | 
| static FontPolicy | getFontPolicy()Looks up and retrieves the FontPolicy used
 by the JGoodies Plastic Look&Feel family. | 
| static boolean | getHighContrastFocusColorsEnabled() | 
| String | getID() | 
| static List | getInstalledThemes()Lazily initializes and returns the  Listof installed
 color themes. | 
| static BorderUIResource | getInternalFrameBorder() | 
| static ColorUIResource | getMenuItemBackground() | 
| static ColorUIResource | getMenuItemSelectedBackground() | 
| static ColorUIResource | getMenuItemSelectedForeground() | 
| static MicroLayoutPolicy | getMicroLayoutPolicy()Looks up and retrieves the MicroLayoutPolicy used by
 the JGoodies Plastic Look&Fs. | 
| String | getName() | 
| static BorderUIResource | getPaletteBorder() | 
| static PlasticTheme | getPlasticTheme()Lazily initializes and returns the PlasticTheme. | 
| static ColorUIResource | getPrimaryControl() | 
| static ColorUIResource | getPrimaryControlDarkShadow() | 
| static ColorUIResource | getPrimaryControlHighlight() | 
| static ColorUIResource | getPrimaryControlInfo() | 
| static ColorUIResource | getPrimaryControlShadow() | 
| static ColorUIResource | getSimpleInternalFrameBackground() | 
| static ColorUIResource | getSimpleInternalFrameForeground() | 
| static String | getTabStyle() | 
| static ColorUIResource | getTitleTextColor() | 
| static FontUIResource | getTitleTextFont() | 
| static ColorUIResource | getWindowTitleBackground() | 
| static ColorUIResource | getWindowTitleForeground() | 
| static ColorUIResource | getWindowTitleInactiveBackground() | 
| static ColorUIResource | getWindowTitleInactiveForeground() | 
| protected void | initClassDefaults(UIDefaults table)Initializes the class defaults, that is, overrides some UI delegates
 with JGoodies Plastic implementations. | 
| protected void | initComponentDefaults(UIDefaults table) | 
| void | initialize()Invoked during  UIManager#setLookAndFeel. | 
| protected void | initSystemColorDefaults(UIDefaults table)Unlike my superclass I register a unified shadow color. | 
| protected static void | installDefaultThemes()Install the default color themes. | 
| static void | installTheme(PlasticTheme theme)Installs a color theme. | 
| protected boolean | is3DEnabled() | 
| static boolean | isSelectTextOnKeyboardFocusGained() | 
| static void | set3DEnabled(boolean b) | 
| static void | setFontPolicy(FontPolicy fontPolicy)Sets the FontPolicy to be used with the JGoodies Plastic L&F
 family. | 
| static void | setHighContrastFocusColorsEnabled(boolean b) | 
| static void | setMicroLayoutPolicy(MicroLayoutPolicy microLayoutPolicy)Sets the MicroLayoutPolicy to be used with the JGoodies Plastic L&Fs. | 
| static void | setPlasticTheme(PlasticTheme theme)Sets the theme for colors and fonts used by the Plastic L&F. | 
| static void | setSelectTextOnKeyboardFocusGained(boolean b)Sets whether text field text shall be selected when it gains focus
 via the keyboard. | 
| static void | setTabStyle(String tabStyle) | 
| void | uninitialize()Invoked during  UIManager#setLookAndFeel. | 
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControlDisabled, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledSelectedIcon, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleFont, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentThemecreateAudioAction, getAudioActionMap, loadSystemColors, playSoundgetDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorderpublic static final String BORDER_STYLE_KEY
public static final String IS_3D_KEY
public static final String DEFAULT_THEME_KEY
public static final String HIGH_CONTRAST_FOCUS_ENABLED_KEY
protected static final String TAB_STYLE_KEY
public static final String TAB_STYLE_DEFAULT_VALUE
public static final String TAB_STYLE_METAL_VALUE
public PlasticLookAndFeel()
public String getID()
getID in class MetalLookAndFeelpublic String getName()
getName in class MetalLookAndFeelpublic String getDescription()
getDescription in class MetalLookAndFeelpublic static FontPolicy getFontPolicy()
setFontPolicy(com.jgoodies.looks.FontPolicy), 
Options.PLASTIC_FONT_POLICY_KEY, 
FontPolicies, 
FontPolicies.customSettingsPolicy(FontPolicy), 
FontPolicies.getDefaultPlasticPolicy()public static void setFontPolicy(FontPolicy fontPolicy)
null, the default will
 be reset.fontPolicy - the FontPolicy to be used with
     the JGoodies Plastic L&F family, or null to reset
     to the defaultgetFontPolicy(), 
Options.PLASTIC_FONT_POLICY_KEYpublic static MicroLayoutPolicy getMicroLayoutPolicy()
setMicroLayoutPolicy(com.jgoodies.looks.MicroLayoutPolicy), 
Options.PLASTIC_MICRO_LAYOUT_POLICY_KEY, 
MicroLayoutPoliciespublic static void setMicroLayoutPolicy(MicroLayoutPolicy microLayoutPolicy)
null, the default will be reset.microLayoutPolicy - the MicroLayoutPolicy to be used with
     the JGoodies Plastic L&Fs, or null to reset
     to the defaultgetMicroLayoutPolicy(), 
Options.PLASTIC_MICRO_LAYOUT_POLICY_KEYprotected boolean is3DEnabled()
public static void set3DEnabled(boolean b)
public static String getTabStyle()
public static void setTabStyle(String tabStyle)
public static boolean getHighContrastFocusColorsEnabled()
public static void setHighContrastFocusColorsEnabled(boolean b)
public static boolean isSelectTextOnKeyboardFocusGained()
public static void setSelectTextOnKeyboardFocusGained(boolean b)
b - true to enabled, false to disablepublic void initialize()
UIManager#setLookAndFeel. In addition
 to the superclass behavior, we install the ShadowPopupFactory.initialize in class BasicLookAndFeeluninitialize()public void uninitialize()
UIManager#setLookAndFeel. In addition
 to the superclass behavior, we uninstall the ShadowPopupFactory.uninitialize in class BasicLookAndFeelinitialize()public Icon getDisabledIcon(JComponent component, Icon icon)
This method will be used only on JDK 5.0 and later.
getDisabledIcon in class MetalLookAndFeelcomponent - the component that will display the icon, may be null.icon - the icon to generate disabled icon from.protected void initClassDefaults(UIDefaults table)
initClassDefaults in class MetalLookAndFeeltable - the UIDefaults table to work withBasicLookAndFeel.getDefaults()protected void initComponentDefaults(UIDefaults table)
initComponentDefaults in class MetalLookAndFeelprotected void initSystemColorDefaults(UIDefaults table)
initSystemColorDefaults in class MetalLookAndFeeltable - the UIDefaults table to work withpublic static PlasticTheme createMyDefaultTheme()
public static List getInstalledThemes()
List of installed
 color themes.protected static void installDefaultThemes()
protected static PlasticTheme createTheme(String themeName)
themeName - the unqualified name of the theme to createnull in case of
     a problempublic static void installTheme(PlasticTheme theme)
theme - the theme to installpublic static PlasticTheme getPlasticTheme()
public static void setPlasticTheme(PlasticTheme theme)
After setting the theme, you need to re-install the Look&Feel, as well as update the UI's of any previously created components - just as if you'd change the Look&Feel.
theme - the PlasticTheme to be setNullPointerException - if the theme is null.getPlasticTheme()public static BorderUIResource getInternalFrameBorder()
public static BorderUIResource getPaletteBorder()
public static ColorUIResource getPrimaryControlDarkShadow()
public static ColorUIResource getPrimaryControlHighlight()
public static ColorUIResource getPrimaryControlInfo()
public static ColorUIResource getPrimaryControlShadow()
public static ColorUIResource getPrimaryControl()
public static ColorUIResource getControlHighlight()
public static ColorUIResource getControlDarkShadow()
public static ColorUIResource getControl()
public static ColorUIResource getFocusColor()
public static ColorUIResource getMenuItemBackground()
public static ColorUIResource getMenuItemSelectedBackground()
public static ColorUIResource getMenuItemSelectedForeground()
public static ColorUIResource getWindowTitleBackground()
public static ColorUIResource getWindowTitleForeground()
public static ColorUIResource getWindowTitleInactiveBackground()
public static ColorUIResource getWindowTitleInactiveForeground()
public static ColorUIResource getSimpleInternalFrameForeground()
public static ColorUIResource getSimpleInternalFrameBackground()
public static ColorUIResource getTitleTextColor()
public static FontUIResource getTitleTextFont()
Copyright © 2001-2014 JGoodies Software GmbH. All Rights Reserved.