org.ow2.clif.console.lib.gui
Class GraphColorChooser

java.lang.Object
  extended by org.ow2.clif.console.lib.gui.GraphColorChooser

public class GraphColorChooser
extends java.lang.Object

This class handles colors for the graphics. It provide a new color available within a defined list of colors.

Author:
Julien Buret, Nicolas Droze, Bruno Dillenseger

Constructor Summary
GraphColorChooser()
           
 
Method Summary
 java.awt.Color getNextColor()
          Return the next color available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphColorChooser

public GraphColorChooser()
Method Detail

getNextColor

public java.awt.Color getNextColor()
Return the next color available.

Returns:
the next available color. Once all colors have been used, it loops on the same color sequence.