|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.statcvs.util.OutputUtils
Utility class for output related stuff.
Constructor Summary | |
OutputUtils()
|
Method Summary | |
static java.lang.String |
escapeHtml(java.lang.String text)
Escapes HTML meta characters "&", "<", ">" and turns "\n" line breaks into HTML line breaks (" "); |
static java.awt.Color |
getStringColor(java.lang.String s)
Returns a distinct Color for a String argument.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutputUtils()
Method Detail |
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 for
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.public static java.lang.String escapeHtml(java.lang.String text)
text
- some string, for example "x > 0 && y < 100"
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |