|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.telemetry.datapanel.RandomColorGenerator
public class RandomColorGenerator
Color generator to generate colors with maximum distinguish.
Constructor Summary | |
---|---|
RandomColorGenerator()
|
Method Summary | |
---|---|
static java.util.List<java.awt.Color> |
generateRandomColor(int n)
Generate n random colors, guarantee them have maximum difference from each other. |
static java.util.List<java.lang.String> |
generateRandomColorInHex(int n)
Generate n random colors as Strings in RRGGBB format, guarantee them have maximum difference from each other. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomColorGenerator()
Method Detail |
---|
public static java.util.List<java.awt.Color> generateRandomColor(int n)
n
- the number of colors to generate.
public static java.util.List<java.lang.String> generateRandomColorInHex(int n)
n
- the number of colors to generate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |