net.infonode.gui.colorprovider

Class FixedColorProvider

public class FixedColorProvider extends AbstractColorProvider implements Serializable

A ColorProvider which always returns the same color.

Version: $Revision: 1.7 $

Author: $Author: jesper $

Field Summary
static FixedColorProviderBLACK
A provider for the color black.
static FixedColorProviderWHITE
A provider for the color white.
Constructor Summary
FixedColorProvider(Color color)
Constructor.
Method Summary
ColorgetColor()
protected ObjectreadResolve()

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.

Constructor Detail

FixedColorProvider

public FixedColorProvider(Color color)
Constructor.

Parameters: color the color which this provider will return

Method Detail

getColor

public Color getColor()

readResolve

protected Object readResolve()