public class BackgroundPainterColorProvider extends AbstractColorProvider
ComponentPainter
that paint its background, like for example a shaped panel, the
color is taken from this painter, otherwise the component background color is used.| Modifier and Type | Field and Description |
|---|---|
static BackgroundPainterColorProvider |
INSTANCE
The only instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(java.awt.Component component)
Returns the color obtained from the given component.
|
protected java.lang.Object |
readResolve() |
getColorpublic static final BackgroundPainterColorProvider INSTANCE
public java.awt.Color getColor(java.awt.Component component)
ColorProvidergetColor in interface ColorProvidergetColor in class AbstractColorProvidercomponent - the componentprotected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException