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)
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider
component
- the componentpublic java.awt.Color getColor()
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider