net.sourceforge.toscanaj.util.gradients
Class LinearGradient

java.lang.Object
  extended bynet.sourceforge.toscanaj.util.gradients.LinearGradient
All Implemented Interfaces:
Gradient

public class LinearGradient
extends java.lang.Object
implements Gradient


Constructor Summary
LinearGradient(java.awt.Color from, java.awt.Color to)
           
 
Method Summary
 java.awt.Color getColor(double position)
          Returns the color at a certain position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearGradient

public LinearGradient(java.awt.Color from,
                      java.awt.Color to)
Method Detail

getColor

public java.awt.Color getColor(double position)
Description copied from interface: Gradient
Returns the color at a certain position.

Specified by:
getColor in interface Gradient
Parameters:
position - value in [0,1] giving the position within the gradient
Returns:
the color at the position


The ToscanaJ project