KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > JSci > awt > ColorScheme


1 package JSci.awt;
2
3 import java.awt.*;
4
5 /**
6 * This interface allows the user to define a custom color scheme for
7 * plots such as ContourPlot.
8 * @author Daniel Lemire
9 */

10 public interface ColorScheme {
11         /**
12         * By convention, this should return a color for f between 0 and 1.
13         * Exceptions should be throw for out of bounds values.
14         */

15         Color getColor(float f);
16 }
17
18
Popular Tags