Package net.infonode.gui.colorprovider
Class FixedColorProvider
java.lang.Object
net.infonode.gui.colorprovider.AbstractColorProvider
net.infonode.gui.colorprovider.FixedColorProvider
- All Implemented Interfaces:
Serializable
,ColorProvider
A
ColorProvider
which always returns the same color.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FixedColorProvider
A provider for the color black.static final FixedColorProvider
A provider for the color white. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.infonode.gui.colorprovider.AbstractColorProvider
getColor
-
Field Details
-
BLACK
A provider for the color black. -
WHITE
A provider for the color white.
-
-
Constructor Details
-
FixedColorProvider
Constructor.- Parameters:
color
- the color which this provider will return
-
-
Method Details
-
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
- Throws:
ObjectStreamException
-