public Liner clone() {
   try {
     return (Liner) super.clone();
   } catch (CloneNotSupportedException ex) {
     InternalError error = new InternalError(ex.getMessage());
     error.initCause(ex);
     throw error;
   }
 }
Exemple #2
0
 /**
  * Clones this Step.
  *
  * @return a clone of this step
  */
 public Object clone() {
   try {
     Step step = (Step) super.clone();
     step.points = new TPoint[points.length];
     step.screenPoints = new Point[points.length];
     step.marks = new HashMap<TrackerPanel, Mark>();
     return step;
   } catch (CloneNotSupportedException ex) {
     ex.printStackTrace();
   }
   return null;
 }