##################################################################

EnvInfo v1.1

Copyright (C) 2009 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################

com.envInfo
Class SeriesColorGenerator

java.lang.Object
  extended by com.envInfo.SeriesColorGenerator

public class SeriesColorGenerator
extends java.lang.Object

Class used to generate colors for the Memory charts.

This class is an adaption of the one done by Nicolas Richasse for his Java Iperf frontend.


Field Summary
private static java.awt.Color[] allColors
           
private static int currentIndex
           
 
Constructor Summary
SeriesColorGenerator()
           
 
Method Summary
static java.awt.Color nextColor()
          Return a new Color.
static void reset()
          Reset all the colors choice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allColors

private static java.awt.Color[] allColors

currentIndex

private static int currentIndex
Constructor Detail

SeriesColorGenerator

public SeriesColorGenerator()
Method Detail

nextColor

public static java.awt.Color nextColor()
Return a new Color.

Returns:
a new Color.

reset

public static void reset()
Reset all the colors choice.



##################################################################

EnvInfo v1.1

Copyright (C) 2009 Frederic Roudaut


This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

###################################################################