public class ColorMultiplier extends AbstractColorProvider
| Constructor and Description |
|---|
ColorMultiplier(ColorProvider colorProvider,
double factor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ColorMultiplier(ColorProvider colorProvider, double factor)
colorProvider - provides the color which RGB components will be multipliedfactor - the multiply factorpublic java.awt.Color getColor(java.awt.Component component)
ColorProvidergetColor in interface ColorProvidergetColor in class AbstractColorProvidercomponent - the componentpublic java.awt.Color getColor()
ColorProvidergetColor in interface ColorProvidergetColor in class AbstractColorProvider