@Override public void merge(Shape shape) { MolecularOrbital mo = (MolecularOrbital) shape; moColorNeg = mo.moColorNeg; moColorPos = mo.moColorPos; moCutoff = mo.moCutoff; moPlane = mo.moPlane; moResolution = mo.moResolution; moScale = mo.moScale; moSlab = mo.moSlab; moSlabValue = mo.moSlabValue; moTitleFormat = mo.moTitleFormat; moTranslucency = mo.moTranslucency; if (htModels == null) htModels = new Hashtable<String, Map<String, Object>>(); Map<String, Map<String, Object>> ht = mo.htModels; if (ht != null) { for (Map.Entry<String, Map<String, Object>> entry : ht.entrySet()) { String key = entry.getKey(); htModels.put(key, entry.getValue()); } } super.merge(shape); }
@Override public void initShape() { super.initShape(); myType = "mo"; setPropI("thisID", "mo", null); }