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

Object org::jfree::chart::axis::PeriodAxis::clone (  )  throws CloneNotSupportedException [inline]

Returns a clone of the axis.

A clone.
CloneNotSupportedException this class is cloneable, but subclasses may not be.

Reimplemented from org::jfree::chart::axis::ValueAxis.

Definition at line 1122 of file PeriodAxis.java.

References labelInfo, and timeZone.

Referenced by org::jfree::chart::axis::junit::PeriodAxisTests::testCloning().

        PeriodAxis clone = (PeriodAxis) super.clone();
        clone.timeZone = (TimeZone) this.timeZone.clone();
        clone.labelInfo = new PeriodAxisLabelInfo[this.labelInfo.length];
        for (int i = 0; i < this.labelInfo.length; i++) {
            clone.labelInfo[i] = this.labelInfo[i];  // copy across references 
                                                     // to immutable objs 
        return clone;

Generated by  Doxygen 1.6.0   Back to index