Class BackgroundPainterColorProvider

  extended bynet.infonode.gui.colorprovider.AbstractColorProvider
      extended bynet.infonode.gui.colorprovider.BackgroundPainterColorProvider
All Implemented Interfaces:
ColorProvider, Serializable

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.

$Revision: 1.8 $
See Also:
Serialized Form

Field Summary
static BackgroundPainterColorProvider INSTANCE
          The only instance of this class.
Method Summary
 Color getColor(Component component)
          Returns the color obtained from the given component.
Methods inherited from class net.infonode.gui.colorprovider.AbstractColorProvider
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


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

Method Detail


public Color getColor(Component component)
Description copied from interface: ColorProvider
Returns the color obtained from the given component.

Specified by:
getColor in interface ColorProvider
getColor in class AbstractColorProvider

Copyright © 2007 NNL Technology AB. All Rights Reserved.