Package net.infonode.gui.colorprovider
Class BackgroundColorProvider
- java.lang.Object
-
- net.infonode.gui.colorprovider.AbstractColorProvider
-
- net.infonode.gui.colorprovider.BackgroundColorProvider
-
- All Implemented Interfaces:
java.io.Serializable,ColorProvider
public class BackgroundColorProvider extends AbstractColorProvider
Returns the background color of a component.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BackgroundColorProviderINSTANCEThe only instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor(java.awt.Component component)Returns the color obtained from the given component.protected java.lang.ObjectreadResolve()-
Methods inherited from class net.infonode.gui.colorprovider.AbstractColorProvider
getColor
-
-
-
-
Field Detail
-
INSTANCE
public static final BackgroundColorProvider INSTANCE
The only instance of this class.
-
-
Method Detail
-
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- Overrides:
getColorin classAbstractColorProvider- Parameters:
component- the component- Returns:
- the color obtained from the given component
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
-