Package net.infonode.gui.colorprovider
Class ColorMultiplier
java.lang.Object
net.infonode.gui.colorprovider.AbstractColorProvider
net.infonode.gui.colorprovider.ColorMultiplier
- All Implemented Interfaces:
Serializable,ColorProvider
Multiplies the RGB components of a color with the given factor.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ColorMultiplier
Constructor.- Parameters:
colorProvider- provides the color which RGB components will be multipliedfactor- the multiply factor
-
-
Method Details
-
getColor
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
-
getColor
Description copied from interface:ColorProviderReturns the default color when no component is available.- Specified by:
getColorin interfaceColorProvider- Overrides:
getColorin classAbstractColorProvider- Returns:
- the default color when no component is available
-