|
|||||||||
| 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.ColorBlender
public class ColorBlender
Blends two colors according to the given blend amount.
| Constructor Summary | |
|---|---|
ColorBlender(ColorProvider color1,
ColorProvider color2,
float blendAmount)
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 ColorBlender(ColorProvider color1,
ColorProvider color2,
float blendAmount)
color1 - provides the first colorcolor2 - provides the second colorblendAmount - the blend amount, range 0 - 1 where 0 means only the first color and 1 means only the second color| Method Detail |
|---|
public java.awt.Color getColor(java.awt.Component component)
ColorProvider
getColor in interface ColorProvidergetColor in class AbstractColorProvidercomponent - the component
public java.awt.Color getColor()
ColorProvider
getColor in interface ColorProvidergetColor in class AbstractColorProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||