Package net.infonode.gui.colorprovider
Class FixedColorProvider
- java.lang.Object
-
- net.infonode.gui.colorprovider.AbstractColorProvider
-
- net.infonode.gui.colorprovider.FixedColorProvider
-
- All Implemented Interfaces:
java.io.Serializable
,ColorProvider
public class FixedColorProvider extends AbstractColorProvider
AColorProvider
which always returns the same color.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static FixedColorProvider
BLACK
A provider for the color black.static FixedColorProvider
WHITE
A provider for the color white.
-
Constructor Summary
Constructors Constructor Description FixedColorProvider(java.awt.Color color)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor()
Returns the default color when no component is available.protected java.lang.Object
readResolve()
-
Methods inherited from class net.infonode.gui.colorprovider.AbstractColorProvider
getColor
-
-
-
-
Field Detail
-
BLACK
public static final FixedColorProvider BLACK
A provider for the color black.
-
WHITE
public static final FixedColorProvider WHITE
A provider for the color white.
-
-
Method Detail
-
getColor
public java.awt.Color getColor()
Description copied from interface:ColorProvider
Returns the default color when no component is available.- Specified by:
getColor
in interfaceColorProvider
- Overrides:
getColor
in classAbstractColorProvider
- Returns:
- the default color when no component is available
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-