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() |
getColor
public static final BackgroundPainterColorProvider INSTANCE
public java.awt.Color getColor(java.awt.Component component)
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider
component
- the componentprotected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException