|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.infoviz.util.RandomColorFactory
Creates variety of colors. This class can be used to assign colors to different elements in a graph. We keep the saturation and brightness constant and change the hue to get different colors. Attempts are made to make sure that each color returned is sufficiently different from previously returned colors.
$Id$ $Revision$ $Author$
Constructor Summary | |
RandomColorFactory()
creates color factory |
Method Summary | |
java.awt.Color |
getNextColor()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomColorFactory()
Method Detail |
public java.awt.Color getNextColor()
getNextColor
in interface ColorFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |