net.sourceforge.toscanaj.util.gradients
Interface Gradient

All Known Implementing Classes:
CombinedGradient, LinearGradient

public interface Gradient


Method Summary
 java.awt.Color getColor(double position)
          Returns the color at a certain position.
 

Method Detail

getColor

public java.awt.Color getColor(double position)
Returns the color at a certain position.

Parameters:
position - value in [0,1] giving the position within the gradient
Returns:
the color at the position
Throws:
java.lang.IllegalArgumentException - iff paramter is out of range


The ToscanaJ project