net.infonode.gui.colorprovider

Class ColorBlender

public class ColorBlender extends AbstractColorProvider implements Serializable

Blends two colors according to the given blend amount.

Version: $Revision: 1.5 $

Author: $Author: jesper $

Constructor Summary
ColorBlender(ColorProvider color1, ColorProvider color2, float blendAmount)
Constructor.
Method Summary
ColorgetColor(Component component)
ColorgetColor()

Constructor Detail

ColorBlender

public ColorBlender(ColorProvider color1, ColorProvider color2, float blendAmount)
Constructor.

Parameters: color1 provides the first color color2 provides the second color blendAmount the blend amount, range 0 - 1 where 0 means only the first color and 1 means only the second color

Method Detail

getColor

public Color getColor(Component component)

getColor

public Color getColor()