Example usage for org.jfree.data DataUtilities clone

List of usage examples for org.jfree.data DataUtilities clone

Introduction

In this page you can find the example usage for org.jfree.data DataUtilities clone.

Prototype

public static double[][] clone(double[][] source) 

Source Link

Document

Returns a clone of the specified array.

Usage

From source file:org.jfree.data.general.DefaultHeatMapDataset.java

/**
 * Returns an independent copy of this dataset.
 *
 * @return A clone./*ww  w. j  av a 2s  .  com*/
 *
 * @throws java.lang.CloneNotSupportedException if there is a problem with
 *    cloning.
 */
@Override
public Object clone() throws CloneNotSupportedException {
    DefaultHeatMapDataset clone = (DefaultHeatMapDataset) super.clone();
    clone.zValues = DataUtilities.clone(this.zValues);
    return clone;
}