Color[] colors = new Color[2];
JGrassColorTable.parseColorRule(rule, values, colors);
String firstValue = String.valueOf(values[0]);
graphics.setColor(Color.black);
graphics.drawRect(currentX, currentY, bWidth, bHeight);
graphics.setColor(colors[0]);
graphics.fillRect(currentX, currentY, bWidth, bHeight);
int tx = round(currentX + 1.5f * bWidth);
int tHeight = (int) round(graphics.getStringBounds(attribute).getHeight());