/** * Returns a clone of the axis. * * @return A clone. * * @throws CloneNotSupportedException If the axis is not cloneable for * some reason. */ public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Returns a clone of this axis. * * @return A clone. * * @throws CloneNotSupportedException if there is a problem cloning. */ @Override public Object clone() throws CloneNotSupportedException { ExtendedCategoryAxis clone = (ExtendedCategoryAxis) super.clone(); clone.sublabels = new HashMap(this.sublabels); return clone; }
/** * Returns a clone of this axis. * * @return A clone. * * @throws CloneNotSupportedException if there is a problem cloning. */ public Object clone() throws CloneNotSupportedException { ExtendedCategoryAxis clone = (ExtendedCategoryAxis) super.clone(); clone.sublabels = new HashMap(this.sublabels); return clone; }
CategoryAxis xAxis = (CategoryAxis) this.domainAxes.get(i); if (xAxis != null) { CategoryAxis clonedAxis = (CategoryAxis) xAxis.clone(); clone.setDomainAxis(i, clonedAxis);