net.infonode.gui.colorprovider
Class FixedColorProvider
java.lang.Object
net.infonode.gui.colorprovider.AbstractColorProvider
net.infonode.gui.colorprovider.FixedColorProvider
- All Implemented Interfaces:
- ColorProvider, Serializable
- public class FixedColorProvider
- extends AbstractColorProvider
A ColorProvider
which always returns the same color.
- Version:
- $Revision: 1.8 $
- See Also:
- Serialized Form
Method Summary |
Color |
getColor()
Returns the default color when no component is available. |
BLACK
public static final FixedColorProvider BLACK
- A provider for the color black.
WHITE
public static final FixedColorProvider WHITE
- A provider for the color white.
FixedColorProvider
public FixedColorProvider(Color color)
- Constructor.
- Parameters:
color
- the color which this provider will return
getColor
public Color getColor()
- Description copied from interface:
ColorProvider
- Returns the default color when no component is available.
- Specified by:
getColor
in interface ColorProvider
- Overrides:
getColor
in class AbstractColorProvider
Copyright © 2007 NNL Technology AB. All Rights Reserved.