if (line == null)
return;
// System.out.println(">>"+line);
try {
JlsTokenizer tk = new JlsTokenizer(line, " ");
if (tk.hasMoreTokens()) {
/* Some lines may have two colors seperated by a space. */
JlsTokenizer tk1 = new JlsTokenizer(tk.nextToken(), ":");
cat0 = Float.parseFloat(tk1.nextToken());
/* The next value(s) describe the color as R:G:B */
r0 = g0 = b0 = Integer.parseInt(tk1.nextToken());
if (tk1.hasMoreTokens())
g0 = b0 = Integer.parseInt(tk1.nextToken());
if (tk1.hasMoreTokens())
b0 = Integer.parseInt(tk1.nextToken());
if (tk.hasMoreTokens()) {
/* Some lines may have two colors seperated by a space. */
tk1 = new JlsTokenizer(tk.nextToken(), ":");
cat1 = Float.parseFloat(tk1.nextToken());
/* The next value(s) describe the color as R:G:B */
r1 = g1 = b1 = Integer.parseInt(tk1.nextToken());
if (tk1.hasMoreTokens())
g1 = b1 = Integer.parseInt(tk1.nextToken());
if (tk1.hasMoreTokens())
b1 = Integer.parseInt(tk1.nextToken());
}
/* Add colour rule if specified for a range */
if (r1 == -1) {
addColorRule((int) cat0, r0, g0, b0);
} else {