- GraduatedColor gc = (GraduatedColor) visible.get(featureType);
- color = (gc.isColourByLabel() ? "label|" : "")
- + Format.getHexString(gc.getMinColor()) + "|"
- + Format.getHexString(gc.getMaxColor())
- + (gc.isAutoScale() ? "|" : "|abso|") + gc.getMin() + "|"
- + gc.getMax() + "|";
- if (gc.getThreshType() != AnnotationColourGradient.NO_THRESHOLD)
- {
- if (gc.getThreshType() == AnnotationColourGradient.BELOW_THRESHOLD)
+ color = Format.getHexString(fc.getColour());
+ }
+ else
+ {
+ color = (fc.isColourByLabel() ? "label|" : "")
+ + Format.getHexString(fc.getMinColour()) + "|"
+ + Format.getHexString(fc.getMaxColour())
+ + (fc.isAutoScaled() ? "|" : "|abso|") + fc.getMin() + "|"
+ + fc.getMax() + "|";
+ if (fc.isBelowThreshold())