public class UIManagerColorProvider extends AbstractColorProvider
ColorProvider which returns a property color from the UIManager.| Modifier and Type | Field and Description |
|---|---|
static UIManagerColorProvider |
CONTROL_COLOR
A provider for the 'control' color.
|
static UIManagerColorProvider |
CONTROL_DARK_SHADOW
A provider for the 'controlDkShadow' color.
|
static UIManagerColorProvider |
DESKTOP_BACKGROUND
A provider for the 'Desktop.background' color.
|
static UIManagerColorProvider |
TABBED_PANE_BACKGROUND
A provider for the 'TabbedPane.background' color.
|
static UIManagerColorProvider |
TABBED_PANE_DARK_SHADOW
A provider for the 'TabbedPane.darkShadow' color.
|
static UIManagerColorProvider |
TABBED_PANE_HIGHLIGHT
A provider for the 'TabbedPane.highlight' color.
|
static UIManagerColorProvider |
TABBED_PANE_SHADOW
A provider for the 'TabbedPane.shadow' color.
|
| Constructor and Description |
|---|
UIManagerColorProvider(java.lang.String propertyName)
Constructor.
|
UIManagerColorProvider(java.lang.String propertyName,
java.awt.Color defaultColor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Returns the default color when no component is available.
|
getColorpublic static final UIManagerColorProvider CONTROL_COLOR
public static final UIManagerColorProvider CONTROL_DARK_SHADOW
public static final UIManagerColorProvider TABBED_PANE_HIGHLIGHT
public static final UIManagerColorProvider TABBED_PANE_SHADOW
public static final UIManagerColorProvider TABBED_PANE_DARK_SHADOW
public static final UIManagerColorProvider TABBED_PANE_BACKGROUND
public static final UIManagerColorProvider DESKTOP_BACKGROUND
public UIManagerColorProvider(java.lang.String propertyName)
propertyName - the name of the property which value will be retrieved from the UIManager.public UIManagerColorProvider(java.lang.String propertyName,
java.awt.Color defaultColor)
propertyName - the name of the property which value will be retrieved from the UIManager.defaultColor - the color to be used if the specified color doesn't exist in the UIManagerpublic java.awt.Color getColor()
ColorProvidergetColor in interface ColorProvidergetColor in class AbstractColorProvider