|
|||||||||||
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
Blends two colors according to the given blend amount.
Constructor Summary | |
ColorBlender(ColorProvider color1,
ColorProvider color2,
float blendAmount)
Constructor. |
Method Summary | |
Color |
getColor()
Returns the default color when no component is available. |
Color |
getColor(Component component)
Returns the color obtained from the given component. |
Methods inherited from class java.lang.Object |
equals, 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 colorMethod Detail |
public Color getColor(Component component)
ColorProvider
getColor
in interface ColorProvider
getColor
in class AbstractColorProvider
public 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 |