|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.gui.colorprovider.AbstractColorProvider
net.infonode.gui.colorprovider.ColorMultiplier
public class ColorMultiplier
Multiplies the RGB components of a color with the given factor.
Constructor Summary | |
---|---|
ColorMultiplier(ColorProvider colorProvider,
double factor)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorMultiplier(ColorProvider colorProvider, double factor)
colorProvider
- provides the color which RGB components will be multipliedfactor
- the multiply factorMethod Detail |
---|
public java.awt.Color getColor(java.awt.Component component)
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider
component
- the component
public java.awt.Color getColor()
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |