net.infonode.gui.colorprovider
Class ColorProviderList
java.lang.Object
net.infonode.gui.colorprovider.AbstractColorProvider
net.infonode.gui.colorprovider.ColorProviderList
- All Implemented Interfaces:
- java.io.Serializable, ColorProvider
public class ColorProviderList
- extends AbstractColorProvider
- Version:
- $Revision: 1.4 $
- Author:
- $Author: jesper $
- See Also:
- Serialized Form
Method Summary |
java.awt.Color |
getColor()
Returns the default color when no component is available. |
java.awt.Color |
getColor(java.awt.Component component)
Returns the color obtained from the given component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
providers
private ColorProvider[] providers
ColorProviderList
public ColorProviderList(ColorProvider colorProvider1,
ColorProvider colorProvider2)
ColorProviderList
public ColorProviderList(ColorProvider colorProvider1,
ColorProvider colorProvider2,
ColorProvider colorProvider3)
ColorProviderList
public ColorProviderList(ColorProvider[] providers)
getColor
public java.awt.Color getColor(java.awt.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
- Parameters:
component
- the component
- Returns:
- the color obtained from the given component
getColor
public java.awt.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
- Returns:
- the default color when no component is available