net.infonode.gui.colorprovider
Class ColorProviderList

java.lang.Object
  extended bynet.infonode.gui.colorprovider.AbstractColorProvider
      extended bynet.infonode.gui.colorprovider.ColorProviderList
All Implemented Interfaces:
ColorProvider, Serializable

public class ColorProviderList
extends AbstractColorProvider

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

Constructor Summary
ColorProviderList(ColorProvider[] providers)
           
ColorProviderList(ColorProvider colorProvider1, ColorProvider colorProvider2)
           
ColorProviderList(ColorProvider colorProvider1, ColorProvider colorProvider2, ColorProvider colorProvider3)
           
 
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

ColorProviderList

public ColorProviderList(ColorProvider colorProvider1,
                         ColorProvider colorProvider2)

ColorProviderList

public ColorProviderList(ColorProvider colorProvider1,
                         ColorProvider colorProvider2,
                         ColorProvider colorProvider3)

ColorProviderList

public ColorProviderList(ColorProvider[] providers)
Method Detail

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
Overrides:
getColor in class AbstractColorProvider

getColor

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

Specified by:
getColor in interface ColorProvider
Overrides:
getColor in class AbstractColorProvider


Copyright © 2007 NNL Technology AB. All Rights Reserved.