Package net.sf.statcvs.charts
Class ChartUtils
java.lang.Object
net.sf.statcvs.charts.ChartUtils
Utility class for chart related stuff.
- Version:
- $Id: ChartUtils.java,v 1.3 2008/04/02 11:22:15 benoitx Exp $
- Author:
- Richard Cyganiak
-
Method Summary
-
Method Details
-
getStringColor
Returns a distinctColor
for aString
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.- Parameters:
s
- aString
to get a color for- Returns:
- a distinct
Color
for aString
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.
-