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() |
getColor
public 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()
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException