Esempio n. 1
0
  /**
   * Clone this object
   *
   * @return a clone
   * @throws CloneNotSupportedException if cloning cannot be done
   */
  protected Object clone() throws CloneNotSupportedException {
    MetSymbol theClone = (MetSymbol) super.clone();
    // Make sure we clear out the propertiesDialog
    theClone.propertiesDialog = null;
    if (theClone.paramIds != null) theClone.paramIds = (String[]) theClone.paramIds.clone();
    if (theClone.paramDescs != null) theClone.paramDescs = (String[]) theClone.paramDescs.clone();

    if (theClone.rotateXInfo != null)
      theClone.rotateXInfo = (RotateInfo) theClone.rotateXInfo.doClone();
    if (theClone.rotateYInfo != null)
      theClone.rotateYInfo = (RotateInfo) theClone.rotateYInfo.doClone();
    if (theClone.rotateZInfo != null)
      theClone.rotateZInfo = (RotateInfo) theClone.rotateZInfo.doClone();

    return theClone;
  }