net.infonode.gui.laf

Class InfoNodeLookAndFeel

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 $

Author: $Author: jesper $

Field Summary
static LookAndFeelInfoLOOK_AND_FEEL_INFO
Constructor Summary
InfoNodeLookAndFeel()
Constructor.
InfoNodeLookAndFeel(InfoNodeLookAndFeelTheme theme)
Constructor.
Method Summary
StringgetDescription()
StringgetName()
InfoNodeLookAndFeelThemegetTheme()
Gets the active theme
protected voidinitClassDefaults(UIDefaults table)
protected voidinitComponentDefaults(UIDefaults table)
voidinitialize()
static voidinstall()
Installs this look and feel with the UIManager, if it's not already installed.
voiduninitialize()

Field Detail

LOOK_AND_FEEL_INFO

public static final 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

getDescription

public String getDescription()

getName

public String getName()

getTheme

public InfoNodeLookAndFeelTheme getTheme()
Gets the active theme

Returns: the active theme

initClassDefaults

protected void initClassDefaults(UIDefaults table)

initComponentDefaults

protected void initComponentDefaults(UIDefaults table)

initialize

public void initialize()

install

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

uninitialize

public void uninitialize()