/** * 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; }