public class ChartUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getStringColor(java.lang.String s)
Returns a distinct
Color for a String argument. |
public static java.awt.Color getStringColor(java.lang.String s)
Color
for a String
argument.
The algorithm tries to provide different colors for similar strings, and
will return equal colors for equal strings. The colors will all have
similar brightness and maximum intensity. Useful for chart coloring.s
- a String
to get a color forColor
for a String
argument.
The algorithm tries to provide different colors for similar strings, and
will return equal colors for equal strings. The colors will all have
similar brightness and maximum intensity. Useful for chart coloring.