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

Object org::jfree::chart::entity::StandardEntityCollection::clone (  )  throws CloneNotSupportedException [inline]

Returns a clone of this entity collection.

Returns:
A clone.
Exceptions:
CloneNotSupportedException if the object cannot be cloned.

Definition at line 194 of file StandardEntityCollection.java.

References org::jfree::chart::entity::ChartEntity::clone(), and entities.

Referenced by org::jfree::chart::entity::junit::StandardEntityCollectionTests::testCloning().

                                                            {
        StandardEntityCollection clone 
                = (StandardEntityCollection) super.clone();
        clone.entities = new java.util.ArrayList(this.entities.size());
        for (int i = 0; i < this.entities.size(); i++) {
            ChartEntity entity = (ChartEntity) this.entities.get(i);
            clone.entities.add(entity.clone());
        }
        return clone;   
    }


Generated by  Doxygen 1.6.0   Back to index