}
ArrayList<Rule> listOfRules = new ArrayList<Rule>();
while( rules.hasMoreElements() ) {
ColorRule element = (ColorRule) rules.nextElement();
float lowvalue = element.getLowCategoryValue();
float highvalue = element.getLowCategoryValue() + element.getCategoryRange();
byte[] lowcatcol = element.getColor(lowvalue);
byte[] highcatcol = element.getColor(highvalue);
float[] lowHigh = new float[]{lowvalue, highvalue};
Color lowColor = new Color(Display.getDefault(), (int) (lowcatcol[0] & 0xff),
(int) (lowcatcol[1] & 0xff), (int) (lowcatcol[2] & 0xff));
Color highColor = new Color(Display.getDefault(), (int) (highcatcol[0] & 0xff),