net.infonode.gui.colorprovider
Class AbstractColorProvider

java.lang.Object
  extended bynet.infonode.gui.colorprovider.AbstractColorProvider
All Implemented Interfaces:
ColorProvider, Serializable
Direct Known Subclasses:
BackgroundColorProvider, BackgroundPainterColorProvider, ColorBlender, ColorMultiplier, ColorProviderList, FixedColorProvider, UIManagerColorProvider

public abstract class AbstractColorProvider
extends Object
implements ColorProvider

Base class for color providers. It returns the color black.

Version:
$Revision: 1.6 $
See Also:
Serialized Form

Constructor Summary
AbstractColorProvider()
           
 
Method Summary
 Color getColor()
          Returns the default color when no component is available.
 Color getColor(Component component)
          Returns the color obtained from the given component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractColorProvider

public AbstractColorProvider()
Method Detail

getColor

public Color getColor()
Description copied from interface: ColorProvider
Returns the default color when no component is available.

Specified by:
getColor in interface ColorProvider
Returns:
the default color when no component is available

getColor

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

Specified by:
getColor in interface ColorProvider
Parameters:
component - the component
Returns:
the color obtained from the given component


Copyright © 2007 NNL Technology AB. All Rights Reserved.