|
||||||||||
| 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
org.jvnet.substance.SubstanceLookAndFeel
public class SubstanceLookAndFeel
Main class for Substance look and feel.
| Constructor Summary | |
|---|---|
SubstanceLookAndFeel()
Simple constructor. |
|
| Method Summary | |
|---|---|
protected void |
createDefaultTheme()
|
static Map<String,String> |
enumerateThemes()
Returns all available color schemes. |
static ColorSchemeEnum |
getColorScheme()
Returns the current color scheme. |
static String |
getCurrentThemeName()
Returns the current color scheme name. |
String |
getDescription()
|
Icon |
getDisabledIcon(JComponent component,
Icon icon)
|
Icon |
getDisabledSelectedIcon(JComponent component,
Icon icon)
|
String |
getID()
|
String |
getName()
|
protected void |
initClassDefaults(UIDefaults table)
|
protected void |
initComponentDefaults(UIDefaults table)
|
boolean |
isNativeLookAndFeel()
|
boolean |
isSupportedLookAndFeel()
|
static boolean |
setCurrentTheme(String themeClassName)
Sets new theme. |
static boolean |
setCurrentTheme(SubstanceTheme theme)
Sets new theme. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubstanceLookAndFeel()
| Method Detail |
|---|
public static ColorSchemeEnum getColorScheme()
public static boolean setCurrentTheme(String themeClassName)
themeClassName - Theme class name (full qualified).
public static boolean setCurrentTheme(SubstanceTheme theme)
theme - Theme object.
public static String getCurrentThemeName()
public static Map<String,String> enumerateThemes()
public String getDescription()
getDescription in class MetalLookAndFeelpublic String getID()
getID in class MetalLookAndFeelpublic String getName()
getName in class MetalLookAndFeelpublic boolean isNativeLookAndFeel()
isNativeLookAndFeel in class MetalLookAndFeelpublic boolean isSupportedLookAndFeel()
isSupportedLookAndFeel in class MetalLookAndFeelprotected void initClassDefaults(UIDefaults table)
initClassDefaults in class MetalLookAndFeelprotected void initComponentDefaults(UIDefaults table)
initComponentDefaults in class MetalLookAndFeel
public Icon getDisabledIcon(JComponent component,
Icon icon)
getDisabledIcon in class MetalLookAndFeel
public Icon getDisabledSelectedIcon(JComponent component,
Icon icon)
getDisabledSelectedIcon in class MetalLookAndFeelprotected void createDefaultTheme()
createDefaultTheme in class MetalLookAndFeel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||