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 FixedColorProviderA provider for the color black.static final FixedColorProviderA 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: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
-
readResolve
- Throws:
ObjectStreamException
-