|
||||||||||
| 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
net.sourceforge.mlf.metouia.MetouiaLookAndFeel
This is the main class of the Metouia Look and Feel. It registers the UI delegates for all swing widgets and installs the default color theme.
| Field Summary | |
protected static MetouiaDefaultTheme |
metouiaTheme
The current Metouia compatible theme. |
| Constructor Summary | |
MetouiaLookAndFeel()
This constructor installs the Metouia Look and Feel with the default color theme. |
|
| Method Summary | |
protected void |
createDefaultTheme()
Creates the default theme and installs it. |
java.lang.String |
getDescription()
Return a one line description of this look and feel implementation, e.g. |
static java.awt.Color |
getGradientReflection()
Gets the upper gradient color for components like JButton, JMenuBar and JProgressBar. |
static java.awt.Color |
getGradientShadow()
Gets the lower gradient color for components like JButton, JMenuBar and JProgressBar. |
static java.awt.Color |
getGradientTranslucentReflection()
Gets the transluscent variation of the upper gradient color for components like JButton, JMenuBar and JProgressBar. |
static java.awt.Color |
getGradientTranslucentShadow()
Gets the transluscent variation of the lower gradient color for components like JButton, JMenuBar and JProgressBar. |
java.lang.String |
getID()
Return a string that identifies this look and feel. |
java.lang.String |
getName()
Return a short string that identifies this look and feel, e.g. |
protected void |
initClassDefaults(javax.swing.UIDefaults table)
Initializes the uiClassID to BasicComponentUI mapping. |
protected void |
initComponentDefaults(javax.swing.UIDefaults table)
Initializes the default values for many ui widgets and puts them in the given ui defaults table. |
protected void |
initSystemColorDefaults(javax.swing.UIDefaults table)
Initializes the system colors. |
boolean |
isNativeLookAndFeel()
If the underlying platform has a "native" look and feel, and this is an implementation of it, return true. |
boolean |
isSupportedLookAndFeel()
Return true if the underlying platform supports and or permits this look and feel. |
static void |
setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)
Sets the current color theme. |
| Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel |
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getDefaults, getDesktopColor, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, provideErrorFeedback |
| Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
createAudioAction, getAudioActionMap, loadSystemColors, playSound |
| Methods inherited from class javax.swing.LookAndFeel |
getDesktopPropertyValue, initialize, installBorder, installColors, installColorsAndFont, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninitialize, uninstallBorder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static MetouiaDefaultTheme metouiaTheme
| Constructor Detail |
public MetouiaLookAndFeel()
| Method Detail |
public java.lang.String getID()
public java.lang.String getName()
public java.lang.String getDescription()
public boolean isNativeLookAndFeel()
public boolean isSupportedLookAndFeel()
protected void initClassDefaults(javax.swing.UIDefaults table)
table - The ui defaults table.protected void createDefaultTheme()
public static void setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)
theme - The theme to install.protected void initSystemColorDefaults(javax.swing.UIDefaults table)
table - The ui defaults table.protected void initComponentDefaults(javax.swing.UIDefaults table)
table - The ui defaults table.public static java.awt.Color getGradientReflection()
public static java.awt.Color getGradientShadow()
public static java.awt.Color getGradientTranslucentReflection()
public static java.awt.Color getGradientTranslucentShadow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||