List of usage examples for org.jfree.util ObjectUtilities deepClone
public static Collection deepClone(final Collection collection) throws CloneNotSupportedException
From source file:org.jfree.data.gantt.TaskSeries.java
/** * Returns an independent copy of this series. * * @return A clone of the series./*from w w w. j a v a2 s. c o m*/ * * @throws CloneNotSupportedException if there is some problem cloning * the dataset. */ @Override public Object clone() throws CloneNotSupportedException { TaskSeries clone = (TaskSeries) super.clone(); clone.tasks = (List) ObjectUtilities.deepClone(this.tasks); return clone; }
From source file:org.jfree.data.xy.MatrixSeriesCollection.java
/** * Returns a clone of this instance.//from www. jav a 2 s .co m * * @return A clone. * * @throws CloneNotSupportedException if there is a problem. */ @Override public Object clone() throws CloneNotSupportedException { MatrixSeriesCollection clone = (MatrixSeriesCollection) super.clone(); clone.seriesList = (List) ObjectUtilities.deepClone(this.seriesList); return clone; }
From source file:org.jfree.data.xy.VectorSeriesCollection.java
/** * Returns a clone of this instance.//from ww w.java 2 s.c o m * * @return A clone. * * @throws CloneNotSupportedException if there is a problem. */ @Override public Object clone() throws CloneNotSupportedException { VectorSeriesCollection clone = (VectorSeriesCollection) super.clone(); clone.data = (List) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.jfree.data.xy.YIntervalSeriesCollection.java
/** * Returns a clone of this instance./*w w w. ja v a 2 s. c o m*/ * * @return A clone. * * @throws CloneNotSupportedException if there is a problem. */ @Override public Object clone() throws CloneNotSupportedException { YIntervalSeriesCollection clone = (YIntervalSeriesCollection) super.clone(); clone.data = (List) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.jfree.data.xy.XIntervalSeriesCollection.java
/** * Returns a clone of this instance.//from w w w.ja v a 2 s . c o m * * @return A clone. * * @throws CloneNotSupportedException if there is a problem. */ @Override public Object clone() throws CloneNotSupportedException { XIntervalSeriesCollection clone = (XIntervalSeriesCollection) super.clone(); clone.data = (List) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.trade.strategy.data.MACDDataset.java
/** * Returns a clone of this instance.//from w ww. ja v a2 s . c om * * @return A clone. * @throws CloneNotSupportedException if there is a * problem. */ @SuppressWarnings("unchecked") public Object clone() throws CloneNotSupportedException { MACDDataset clone = (MACDDataset) super.clone(); clone.data = (List<IndicatorSeries>) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.trade.strategy.data.VostroDataset.java
/** * Returns a clone of this instance./*ww w . j a va 2 s.co m*/ * * @return A clone. * @throws CloneNotSupportedException * if there is a problem. */ @SuppressWarnings("unchecked") public Object clone() throws CloneNotSupportedException { VostroDataset clone = (VostroDataset) super.clone(); clone.data = (List<IndicatorSeries>) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.trade.strategy.data.VwapDataset.java
/** * Returns a clone of this instance.//w w w. j av a 2s .c o m * * * * * @return A clone. * @throws CloneNotSupportedException if there is a * problem. */ @SuppressWarnings("unchecked") public Object clone() throws CloneNotSupportedException { VwapDataset clone = (VwapDataset) super.clone(); clone.data = (List<IndicatorSeries>) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.trade.strategy.data.MovingAverageDataset.java
/** * Returns a clone of this instance.//from w w w .j a v a2s.c o m * * @return A clone. * @throws CloneNotSupportedException * if there is a problem. */ @SuppressWarnings("unchecked") public Object clone() throws CloneNotSupportedException { MovingAverageDataset clone = (MovingAverageDataset) super.clone(); clone.data = (List<IndicatorSeries>) ObjectUtilities.deepClone(this.data); return clone; }
From source file:org.trade.strategy.data.MoneyFlowIndexDataset.java
/** * Returns a clone of this instance./*from w w w . j a va 2s . co m*/ * * @return A clone. * @throws CloneNotSupportedException * if there is a problem. */ @SuppressWarnings("unchecked") public Object clone() throws CloneNotSupportedException { MoneyFlowIndexDataset clone = (MoneyFlowIndexDataset) super.clone(); clone.data = (List<IndicatorSeries>) ObjectUtilities.deepClone(this.data); return clone; }