Package net.infonode.gui.colorprovider
Class AbstractColorProvider
- java.lang.Object
-
- net.infonode.gui.colorprovider.AbstractColorProvider
-
- All Implemented Interfaces:
java.io.Serializable,ColorProvider
- Direct Known Subclasses:
BackgroundColorProvider,BackgroundPainterColorProvider,ColorBlender,ColorMultiplier,ColorProviderList,FixedColorProvider,UIManagerColorProvider
public abstract class AbstractColorProvider extends java.lang.Object implements ColorProvider
Base class for color providers. It returns the color black.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractColorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor()Returns the default color when no component is available.java.awt.ColorgetColor(java.awt.Component component)Returns the color obtained from the given component.
-
-
-
Method Detail
-
getColor
public java.awt.Color getColor()
Description copied from interface:ColorProviderReturns the default color when no component is available.- Specified by:
getColorin interfaceColorProvider- Returns:
- the default color when no component is available
-
getColor
public java.awt.Color getColor(java.awt.Component component)
Description copied from interface:ColorProviderReturns the color obtained from the given component.- Specified by:
getColorin interfaceColorProvider- Parameters:
component- the component- Returns:
- the color obtained from the given component
-
-