Package net.infonode.gui.colorprovider
Class UIManagerColorProvider
- java.lang.Object
-
- net.infonode.gui.colorprovider.AbstractColorProvider
-
- net.infonode.gui.colorprovider.UIManagerColorProvider
-
- All Implemented Interfaces:
java.io.Serializable,ColorProvider
public class UIManagerColorProvider extends AbstractColorProvider
AColorProviderwhich returns a property color from theUIManager.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static UIManagerColorProviderCONTROL_COLORA provider for the 'control' color.static UIManagerColorProviderCONTROL_DARK_SHADOWA provider for the 'controlDkShadow' color.static UIManagerColorProviderDESKTOP_BACKGROUNDA provider for the 'Desktop.background' color.static UIManagerColorProviderTABBED_PANE_BACKGROUNDA provider for the 'TabbedPane.background' color.static UIManagerColorProviderTABBED_PANE_DARK_SHADOWA provider for the 'TabbedPane.darkShadow' color.static UIManagerColorProviderTABBED_PANE_HIGHLIGHTA provider for the 'TabbedPane.highlight' color.static UIManagerColorProviderTABBED_PANE_SHADOWA provider for the 'TabbedPane.shadow' color.
-
Constructor Summary
Constructors Constructor Description UIManagerColorProvider(java.lang.String propertyName)Constructor.UIManagerColorProvider(java.lang.String propertyName, java.awt.Color defaultColor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor()Returns the default color when no component is available.-
Methods inherited from class net.infonode.gui.colorprovider.AbstractColorProvider
getColor
-
-
-
-
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.
-
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.
-
TABBED_PANE_DARK_SHADOW
public static final UIManagerColorProvider TABBED_PANE_DARK_SHADOW
A provider for the 'TabbedPane.darkShadow' color.
-
TABBED_PANE_BACKGROUND
public static final UIManagerColorProvider TABBED_PANE_BACKGROUND
A provider for the 'TabbedPane.background' color.
-
DESKTOP_BACKGROUND
public static final UIManagerColorProvider DESKTOP_BACKGROUND
A provider for the 'Desktop.background' color.
-
-
Constructor Detail
-
UIManagerColorProvider
public UIManagerColorProvider(java.lang.String propertyName)
Constructor.- Parameters:
propertyName- the name of the property which value will be retrieved from theUIManager.
-
UIManagerColorProvider
public UIManagerColorProvider(java.lang.String propertyName, java.awt.Color defaultColor)Constructor.- Parameters:
propertyName- the name of the property which value will be retrieved from theUIManager.defaultColor- the color to be used if the specified color doesn't exist in the UIManager
-
-
Method Detail
-
getColor
public java.awt.Color getColor()
Description copied from interface:ColorProviderReturns the default color when no component is available.- Specified by:
getColorin interfaceColorProvider- Overrides:
getColorin classAbstractColorProvider- Returns:
- the default color when no component is available
-
-