public class FixedColorProvider extends AbstractColorProvider
ColorProvider which always returns the same color.| Modifier and Type | Field and Description |
|---|---|
static FixedColorProvider |
BLACK
A provider for the color black.
|
static FixedColorProvider |
WHITE
A provider for the color white.
|
| Constructor and Description |
|---|
FixedColorProvider(java.awt.Color color)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Returns the default color when no component is available.
|
protected java.lang.Object |
readResolve() |
getColorpublic static final FixedColorProvider BLACK
public static final FixedColorProvider WHITE
public FixedColorProvider(java.awt.Color color)
color - the color which this provider will returnpublic java.awt.Color getColor()
ColorProvidergetColor in interface ColorProvidergetColor in class AbstractColorProviderprotected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException