congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ObjectUtilities.deepClone
Code IndexAdd Tabnine to your IDE (free)

How to use
deepClone
method
in
org.jfree.util.ObjectUtilities

Best Java code snippets using org.jfree.util.ObjectUtilities.deepClone (Showing top 20 results out of 315)

origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone of this instance.
 *
 * @throws java.lang.CloneNotSupportedException if there is some problem
 *     with the cloning.
 */
public Object clone() throws CloneNotSupportedException {
  CrosshairOverlay clone = (CrosshairOverlay) super.clone();
  clone.xCrosshairs = (List) ObjectUtilities.deepClone(this.xCrosshairs);
  clone.yCrosshairs = (List) ObjectUtilities.deepClone(this.yCrosshairs);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the collection.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if an item in the collection is not
 *         cloneable.
 */
public Object clone() throws CloneNotSupportedException {
  LegendItemCollection clone = (LegendItemCollection) super.clone();
  clone.items = (List) ObjectUtilities.deepClone(this.items);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
  DefaultKeyedValues2D clone = (DefaultKeyedValues2D) super.clone();
  // for the keys, a shallow copy should be fine because keys
  // should be immutable...
  clone.columnKeys = new java.util.ArrayList(this.columnKeys);
  clone.rowKeys = new java.util.ArrayList(this.rowKeys);
  // but the row data requires a deep copy
  clone.rows = (List) ObjectUtilities.deepClone(this.rows);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the series.
 *
 * @return A clone of the series.
 *
 * @throws CloneNotSupportedException if there is a cloning problem.
 */
public Object clone() throws CloneNotSupportedException {
  XYSeries clone = (XYSeries) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
public Object clone() throws CloneNotSupportedException {
  MatrixSeriesCollection clone = (MatrixSeriesCollection) super.clone();
  clone.seriesList = (List) ObjectUtilities.deepClone(this.seriesList);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
public Object clone() throws CloneNotSupportedException {
  VectorSeriesCollection clone
      = (VectorSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
public Object clone() throws CloneNotSupportedException {
  YIntervalSeriesCollection clone
      = (YIntervalSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this time series collection.
 *
 * @return A clone.
 *
 * @throws java.lang.CloneNotSupportedException
 */
public Object clone() throws CloneNotSupportedException {
  TimeSeriesCollection clone = (TimeSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  clone.workingCalendar = (Calendar) this.workingCalendar.clone();
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns an independent copy of this series.
 *
 * @return A clone of the series.
 *
 * @throws CloneNotSupportedException if there is some problem cloning
 *     the dataset.
 */
public Object clone() throws CloneNotSupportedException {
  TaskSeries clone = (TaskSeries) super.clone();
  clone.tasks = (List) ObjectUtilities.deepClone(this.tasks);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
public Object clone() throws CloneNotSupportedException {
  OHLCSeriesCollection clone
      = (OHLCSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the dataset.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException not thrown by this class, but maybe
 *         by subclasses (if any).
 */
public Object clone() throws CloneNotSupportedException {
  SimpleHistogramDataset clone = (SimpleHistogramDataset) super.clone();
  clone.bins = (List) ObjectUtilities.deepClone(this.bins);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
public Object clone() throws CloneNotSupportedException {
  XIntervalSeriesCollection clone
      = (XIntervalSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns an independent copy of this dataset.
 *
 * @return A clone of the dataset.
 *
 * @throws CloneNotSupportedException if there is some problem cloning
 *     the dataset.
 */
public Object clone() throws CloneNotSupportedException {
  TaskSeriesCollection clone = (TaskSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  clone.keys = new java.util.ArrayList(this.keys);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * A utility method to clone the marker maps.
 *
 * @param map  the map to clone.
 *
 * @return A clone of the map.
 *
 * @throws CloneNotSupportedException if there is some problem cloning the
 *                                    map.
 */
private Map cloneMarkerMap(Map map) throws CloneNotSupportedException {
  Map clone = new HashMap();
  Set keys = map.keySet();
  Iterator iterator = keys.iterator();
  while (iterator.hasNext()) {
    Object key = iterator.next();
    List entry = (List) map.get(key);
    Object toAdd = ObjectUtilities.deepClone(entry);
    clone.put(key, toAdd);
  }
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the time series.
 * <P>
 * Notes:
 * <ul>
 *   <li>no need to clone the domain and range descriptions, since String
 *     object is immutable;</li>
 *   <li>we pass over to the more general method clone(start, end).</li>
 * </ul>
 *
 * @return A clone of the time series.
 *
 * @throws CloneNotSupportedException not thrown by this class, but
 *         subclasses may differ.
 */
public Object clone() throws CloneNotSupportedException {
  TimeSeries clone = (TimeSeries) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the plot.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
  CombinedDomainCategoryPlot result
    = (CombinedDomainCategoryPlot) super.clone();
  result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
  for (Iterator it = result.subplots.iterator(); it.hasNext();) {
    Plot child = (Plot) it.next();
    child.setParent(result);
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
public Object clone() throws CloneNotSupportedException {
  XYSeriesCollection clone = (XYSeriesCollection) super.clone();
  clone.data = (List) ObjectUtilities.deepClone(this.data);
  clone.intervalDelegate
      = (IntervalXYDelegate) this.intervalDelegate.clone();
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the plot.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
  CombinedRangeXYPlot result = (CombinedRangeXYPlot) super.clone();
  result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
  for (Iterator it = result.subplots.iterator(); it.hasNext();) {
    Plot child = (Plot) it.next();
    child.setParent(result);
  }
  // after setting up all the subplots, the shared range axis may need
  // reconfiguring
  ValueAxis rangeAxis = result.getRangeAxis();
  if (rangeAxis != null) {
    rangeAxis.configure();
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the plot.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
  CombinedRangeCategoryPlot result
    = (CombinedRangeCategoryPlot) super.clone();
  result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
  for (Iterator it = result.subplots.iterator(); it.hasNext();) {
    Plot child = (Plot) it.next();
    child.setParent(result);
  }
  // after setting up all the subplots, the shared range axis may need
  // reconfiguring
  ValueAxis rangeAxis = result.getRangeAxis();
  if (rangeAxis != null) {
    rangeAxis.configure();
  }
  return result;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the annotation.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
  CombinedDomainXYPlot result = (CombinedDomainXYPlot) super.clone();
  result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
  for (Iterator it = result.subplots.iterator(); it.hasNext();) {
    Plot child = (Plot) it.next();
    child.setParent(result);
  }
  // after setting up all the subplots, the shared domain axis may need
  // reconfiguring
  ValueAxis domainAxis = result.getDomainAxis();
  if (domainAxis != null) {
    domainAxis.configure();
  }
  return result;
}
org.jfree.utilObjectUtilitiesdeepClone

Javadoc

Returns a new collection containing clones of all the items in the specified collection.

Popular methods of ObjectUtilities

  • equal
    Returns true if the two objects are equal OR bothnull.
  • clone
    Returns a clone of the specified object, if it can be cloned, otherwise throws a CloneNotSupportedEx
  • convertName
    Transform the class-relative resource name into a global name by appending it to the classes package
  • getClassLoader
    Returns the classloader, which was responsible for loading the given class.
  • getClassLoaderSource
    Returns the internal configuration entry, whether the classloader of the thread context or the conte
  • getResource
    Returns the resource specified by the absolute name.
  • getResourceRelative
    Returns the resource specified by the relative name.
  • getResourceRelativeAsStream
    Returns the inputstream for the resource specified by therelative name.
  • loadAndInstantiate
    Tries to create a new instance of the given class. This is a short cut for the common bean instantia
  • parseVersions
  • setClassLoaderSource
    Defines the internal configuration entry, whether the classloader of the thread context or the conte
  • hashCode
    Returns a hash code for an object, or zero if the object isnull.
  • setClassLoaderSource,
  • hashCode

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • putExtra (Intent)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now