Logo Search packages:      
Sourcecode: libjfreechart-java version File versions  Download package

Object org::jfree::data::xy::XYSeriesCollection::clone (  )  throws CloneNotSupportedException [inline]

Returns a clone of this instance.

Returns:
A clone.
Exceptions:
CloneNotSupportedException if there is a problem.

Reimplemented from org::jfree::data::general::AbstractDataset.

Definition at line 406 of file XYSeriesCollection.java.

References org::jfree::data::xy::IntervalXYDelegate::clone(), data, and intervalDelegate.

Referenced by org::jfree::data::xy::junit::XYSeriesCollectionTests::testCloning().

                                                            {
        XYSeriesCollection clone = (XYSeriesCollection) super.clone();
        clone.data = (List) ObjectUtilities.deepClone(this.data);
        clone.intervalDelegate
                = (IntervalXYDelegate) this.intervalDelegate.clone();
        return clone;
    }


Generated by  Doxygen 1.6.0   Back to index