- this.renderOrder = fr.renderOrder;
- this.featureGroups = fr.featureGroups;
- this.featureColours = fr.featureColours;
+ renderOrder = null;
+ featureGroups = new Hashtable();
+ featureColours = new Hashtable();
+ featureOrder = new Hashtable();
+ if (fr.renderOrder != null)
+ {
+ this.renderOrder = new String[fr.renderOrder.length];
+ System.arraycopy(fr.renderOrder, 0, renderOrder, 0,
+ renderOrder.length);
+ }
+ if (fr.featureGroups != null)
+ {
+ this.featureGroups = new Hashtable(fr.featureGroups);
+ }
+ if (fr.featureColours != null)
+ {
+ this.featureColours = new Hashtable(fr.featureColours);
+ }
+ Enumeration en = fr.featureColours.keys();
+ while (en.hasMoreElements())
+ {
+ Object next = en.nextElement();
+ Object val = featureColours.get(next);
+ if (val instanceof GraduatedColor)
+ {
+ featureColours
+ .put(next, new GraduatedColor((GraduatedColor) val));
+ }
+ }