Package net.infonode.gui.laf
Class InfoNodeLookAndFeel
java.lang.Object
javax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
javax.swing.plaf.metal.MetalLookAndFeel
net.infonode.gui.laf.InfoNodeLookAndFeel
- All Implemented Interfaces:
Serializable
A Look and Feel that's based on Metal. It's slimmer and use other colors than the standard Metal Look and Feel.
Under Java 1.5 the currect Metal theme is stored when the InfoNode Look and Feel is applied, and restored when
another Look and Feel is set. Under Java 1.4 or earlier it is not possible to get the current theme and a
DefaultMetalTheme is set instead.
To set the look and feel use:
UIManager.setLookAndFeel(new InfoNodeLookAndFeel());Or, if you want to use a different theme, use:
InfoNodeLookAndFeelTheme theme = new InfoNodeLookAndFeelTheme(...); // Modify the theme colors, fonts etc. UIManager.setLookAndFeel(new InfoNodeLookAndFeel(theme));Do not modify the theme after it has been used in the look and feel!
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetName()getTheme()Gets the active themeprotected voidinitClassDefaults(UIDefaults table) protected voidinitComponentDefaults(UIDefaults table) voidstatic voidinstall()Installs this look and feel with theUIManager, if it's not already installed.voidMethods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, getID, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, 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, initSystemColorDefaults, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentThemeMethods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, loadSystemColors, playSoundMethods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
-
Field Details
-
LOOK_AND_FEEL_INFO
-
-
Constructor Details
-
InfoNodeLookAndFeel
public InfoNodeLookAndFeel()Constructor. -
InfoNodeLookAndFeel
Constructor.- Parameters:
theme- the theme to use. Do not modify the theme after this constructor has been called!
-
-
Method Details
-
getTheme
Gets the active theme- Returns:
- the active theme
-
initialize
public void initialize()- Overrides:
initializein classBasicLookAndFeel
-
uninitialize
public void uninitialize()- Overrides:
uninitializein classBasicLookAndFeel
-
getName
- Overrides:
getNamein classMetalLookAndFeel
-
getDescription
- Overrides:
getDescriptionin classMetalLookAndFeel
-
initClassDefaults
- Overrides:
initClassDefaultsin classMetalLookAndFeel
-
initComponentDefaults
- Overrides:
initComponentDefaultsin classMetalLookAndFeel
-
install
public static void install()Installs this look and feel with theUIManager, if it's not already installed.
-