|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
javax.swing.plaf.metal.MetalLookAndFeel
com.jgoodies.looks.plastic.PlasticLookAndFeel
public class PlasticLookAndFeel
Initializes class and component defaults for the JGoodies Plastic look&feel.
Field Summary | |
---|---|
static String |
BORDER_STYLE_KEY
Client property key to set a border style - shadows the header style. |
static String |
DEFAULT_THEME_KEY
A System property key to set the default theme. |
static String |
HIGH_CONTRAST_FOCUS_ENABLED_KEY
A System property key that indicates that the high contrast focus colors shall be choosen - if applicable. |
static String |
IS_3D_KEY
Client property key to disable the pseudo 3D effect. |
static String |
TAB_STYLE_DEFAULT_VALUE
A System property value that indicates that Plastic shall render tabs in the Plastic 1.0 style. |
protected static String |
TAB_STYLE_KEY
A System property key for the rendering style of the Plastic TabbedPane. |
static String |
TAB_STYLE_METAL_VALUE
A System property value that indicates that Plastic shall render tabs in the Metal L&F style. |
static boolean |
useHighContrastFocusColors
Holds whether we are using the high contrast focus colors. |
Constructor Summary | |
---|---|
PlasticLookAndFeel()
Constructs the PlasticLookAndFeel . |
Method Summary | |
---|---|
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()
|
static ColorUIResource |
getFocusColor()
|
static FontSizeHints |
getFontSizeHints()
Returns the current FontSizeHints ,
where look specific settings shadow the global users defaults
as stored under key FontSizeHints.KEY . |
static boolean |
getHighContrastFocusColorsEnabled()
|
String |
getID()
|
static List |
getInstalledThemes()
Lazily initializes and returns the List of installed
color themes. |
static BorderUIResource |
getInternalFrameBorder()
|
static ColorUIResource |
getMenuItemBackground()
|
static ColorUIResource |
getMenuItemSelectedBackground()
|
static ColorUIResource |
getMenuItemSelectedForeground()
|
static PlasticTheme |
getMyCurrentTheme()
Gets the current PlasticTheme . |
String |
getName()
|
static BorderUIResource |
getPaletteBorder()
|
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 void |
set3DEnabled(boolean b)
|
static void |
setFontSizeHints(FontSizeHints newHints)
Sets FontSizeHints that shadow the global font size hints. |
static void |
setHighContrastFocusColorsEnabled(boolean b)
|
static void |
setMyCurrentTheme(PlasticTheme theme)
Sets a new PlasticTheme for colors and fonts. |
static void |
setTabStyle(String tabStyle)
|
void |
uninitialize()
Invoked during UIManager#setLookAndFeel . |
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
---|
createAudioAction, getAudioActionMap, loadSystemColors, playSound |
Methods inherited from class javax.swing.LookAndFeel |
---|
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public 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 static boolean useHighContrastFocusColors
Constructor Detail |
---|
public PlasticLookAndFeel()
PlasticLookAndFeel
.
Method Detail |
---|
public String getID()
getID
in class MetalLookAndFeel
public String getName()
getName
in class MetalLookAndFeel
public String getDescription()
getDescription
in class MetalLookAndFeel
public static FontSizeHints getFontSizeHints()
FontSizeHints
,
where look specific settings shadow the global users defaults
as stored under key FontSizeHints.KEY
.
Options.setGlobalFontSizeHints(FontSizeHints)
,
FontSizeHints
public static void setFontSizeHints(FontSizeHints newHints)
FontSizeHints
that shadow the global font size hints.
newHints
- the font size hints to be setOptions.setGlobalFontSizeHints(FontSizeHints)
,
FontSizeHints
protected 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 void initialize()
UIManager#setLookAndFeel
. In addition
to the superclass behavior, we install the ShadowPopupFactory.
initialize
in class BasicLookAndFeel
uninitialize()
public void uninitialize()
UIManager#setLookAndFeel
. In addition
to the superclass behavior, we uninstall the ShadowPopupFactory.
uninitialize
in class BasicLookAndFeel
initialize()
protected void initClassDefaults(UIDefaults table)
initClassDefaults
in class MetalLookAndFeel
table
- the UIDefaults table to work withBasicLookAndFeel.getDefaults()
protected void initComponentDefaults(UIDefaults table)
initComponentDefaults
in class MetalLookAndFeel
protected void initSystemColorDefaults(UIDefaults table)
initSystemColorDefaults
in class MetalLookAndFeel
table
- 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 create
null
in case of
a problempublic static void installTheme(PlasticTheme theme)
theme
- the theme to installpublic static PlasticTheme getMyCurrentTheme()
PlasticTheme
.
public static void setMyCurrentTheme(PlasticTheme theme)
PlasticTheme
for colors and fonts.
theme
- the PlasticTheme to be setpublic 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |