net.infonode.gui.colorprovider

Class BackgroundPainterColorProvider

public class BackgroundPainterColorProvider extends AbstractColorProvider

Finds the most suitable background color of a component. If the component has a 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.

Version: $Revision: 1.8 $

Author: $Author: jesper $

Field Summary
static BackgroundPainterColorProviderINSTANCE
The only instance of this class.
Method Summary
ColorgetColor(Component component)
protected ObjectreadResolve()

Field Detail

INSTANCE

public static final BackgroundPainterColorProvider INSTANCE
The only instance of this class.

Method Detail

getColor

public Color getColor(Component component)

readResolve

protected Object readResolve()