net.infonode.gui.colorprovider

Class UIManagerColorProvider

public class UIManagerColorProvider extends AbstractColorProvider implements Serializable

A {@link ColorProvider} which returns a property color from the {@link UIManager}.

Version: $Revision: 1.10 $

Author: $Author: jesper $

Field Summary
static UIManagerColorProviderCONTROL_COLOR
A provider for the 'control' color.
static UIManagerColorProviderCONTROL_DARK_SHADOW
A provider for the 'controlDkShadow' color.
static UIManagerColorProviderDESKTOP_BACKGROUND
A provider for the 'Desktop.background' color.
static UIManagerColorProviderTABBED_PANE_BACKGROUND
A provider for the 'TabbedPane.background' color.
static UIManagerColorProviderTABBED_PANE_DARK_SHADOW
A provider for the 'TabbedPane.darkShadow' color.
static UIManagerColorProviderTABBED_PANE_HIGHLIGHT
A provider for the 'TabbedPane.highlight' color.
static UIManagerColorProviderTABBED_PANE_SHADOW
A provider for the 'TabbedPane.shadow' color.
Constructor Summary
UIManagerColorProvider(String propertyName)
Constructor.
UIManagerColorProvider(String propertyName, Color defaultColor)
Constructor.
Method Summary
ColorgetColor()

Field Detail

CONTROL_COLOR

public static final UIManagerColorProvider CONTROL_COLOR
A provider for the 'control' color.

CONTROL_DARK_SHADOW

public static final UIManagerColorProvider CONTROL_DARK_SHADOW
A provider for the 'controlDkShadow' color.

DESKTOP_BACKGROUND

public static final UIManagerColorProvider DESKTOP_BACKGROUND
A provider for the 'Desktop.background' color.

TABBED_PANE_BACKGROUND

public static final UIManagerColorProvider TABBED_PANE_BACKGROUND
A provider for the 'TabbedPane.background' color.

TABBED_PANE_DARK_SHADOW

public static final UIManagerColorProvider TABBED_PANE_DARK_SHADOW
A provider for the 'TabbedPane.darkShadow' color.

TABBED_PANE_HIGHLIGHT

public static final UIManagerColorProvider TABBED_PANE_HIGHLIGHT
A provider for the 'TabbedPane.highlight' color.

TABBED_PANE_SHADOW

public static final UIManagerColorProvider TABBED_PANE_SHADOW
A provider for the 'TabbedPane.shadow' color.

Constructor Detail

UIManagerColorProvider

public UIManagerColorProvider(String propertyName)
Constructor.

Parameters: propertyName the name of the property which value will be retrieved from the {@link UIManager}.

UIManagerColorProvider

public UIManagerColorProvider(String propertyName, Color defaultColor)
Constructor.

Parameters: propertyName the name of the property which value will be retrieved from the {@link UIManager}. defaultColor the color to be used if the specified color doesn't exist in the UIManager

Method Detail

getColor

public Color getColor()