net.infonode.gui.laf
Class InfoNodeLookAndFeel

java.lang.Object
  extended byjavax.swing.LookAndFeel
      extended byjavax.swing.plaf.basic.BasicLookAndFeel
          extended byjavax.swing.plaf.metal.MetalLookAndFeel
              extended bynet.infonode.gui.laf.InfoNodeLookAndFeel
All Implemented Interfaces:
Serializable

public class InfoNodeLookAndFeel
extends MetalLookAndFeel

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!

Version:
$Revision: 1.22 $
See Also:
Serialized Form

Field Summary
static UIManager.LookAndFeelInfo LOOK_AND_FEEL_INFO
           
 
Constructor Summary
InfoNodeLookAndFeel()
          Constructor.
InfoNodeLookAndFeel(InfoNodeLookAndFeelTheme theme)
          Constructor.
 
Method Summary
 String getDescription()
           
 String getName()
           
 InfoNodeLookAndFeelTheme getTheme()
          Gets the active theme
 void initialize()
           
static void install()
          Installs this look and feel with the UIManager, if it's not already installed.
 void uninitialize()
           
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getDefaults, getDesktopColor, getFocusColor, getHighlightedTextColor, getID, 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, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setCurrentTheme
 
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOOK_AND_FEEL_INFO

public static final UIManager.LookAndFeelInfo LOOK_AND_FEEL_INFO
Constructor Detail

InfoNodeLookAndFeel

public InfoNodeLookAndFeel()
Constructor.


InfoNodeLookAndFeel

public InfoNodeLookAndFeel(InfoNodeLookAndFeelTheme theme)
Constructor.

Parameters:
theme - the theme to use. Do not modify the theme after this constructor has been called!
Method Detail

getTheme

public InfoNodeLookAndFeelTheme getTheme()
Gets the active theme

Returns:
the active theme

initialize

public void initialize()

uninitialize

public void uninitialize()

getName

public String getName()

getDescription

public String getDescription()

install

public static void install()
Installs this look and feel with the UIManager, if it's not already installed.



Copyright © 2007 NNL Technology AB. All Rights Reserved.