Tabnine Logo
AbstractIntervalXYDataset.clone
Code IndexAdd Tabnine to your IDE (free)

How to use
clone
method
in
org.jfree.data.xy.AbstractIntervalXYDataset

Best Java code snippets using org.jfree.data.xy.AbstractIntervalXYDataset.clone (Showing top 20 results out of 315)

origin: ca.umontreal.iro/ssj

  /**
  * Returns a clone of the dataset.
  *
  * @return A clone of the dataset.
  *
  * @throws CloneNotSupportedException if the object cannot be cloned.
  */
  public Object clone()
  throws CloneNotSupportedException
  {
   return super.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: jfree/jfreechart

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

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  XIntervalSeriesCollection clone
      = (XIntervalSeriesCollection) super.clone();
  clone.data = (List) ObjectUtils.deepClone(this.data);
  return clone;
}
origin: jfree/jfreechart

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  YIntervalSeriesCollection clone
      = (YIntervalSeriesCollection) super.clone();
  clone.data = (List) ObjectUtils.deepClone(this.data);
  return clone;
}
origin: jfree/jfreechart

/**
 * Returns a clone of this dataset.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if the dataset cannot be cloned.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  TimeTableXYDataset clone = (TimeTableXYDataset) super.clone();
  clone.values = (DefaultKeyedValues2D) this.values.clone();
  clone.workingCalendar = (Calendar) this.workingCalendar.clone();
  return clone;
}
origin: jfree/jfreechart

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

/**
 * Returns a clone of this dataset.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if the dataset cannot be cloned.
 */
public Object clone() throws CloneNotSupportedException {
  TimeTableXYDataset clone = (TimeTableXYDataset) super.clone();
  clone.values = (DefaultKeyedValues2D) this.values.clone();
  clone.workingCalendar = (Calendar) this.workingCalendar.clone();
  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 a clone of the dataset.
 *
 * @return A clone of the dataset.
 *
 * @throws CloneNotSupportedException if the object cannot be cloned.
 */
public Object clone() throws CloneNotSupportedException {
  HistogramDataset clone = (HistogramDataset) super.clone();
  int seriesCount = getSeriesCount();
  clone.list = new java.util.ArrayList(seriesCount);
  for (int i = 0; i < seriesCount; i++) {
    clone.list.add(new HashMap((Map) this.list.get(i)));
  }
  return clone;
}
origin: jfree/jfreechart

/**
 * Returns a clone of the dataset.
 *
 * @return A clone of the dataset.
 *
 * @throws CloneNotSupportedException if the object cannot be cloned.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  HistogramDataset clone = (HistogramDataset) super.clone();
  int seriesCount = getSeriesCount();
  clone.list = new java.util.ArrayList(seriesCount);
  for (int i = 0; i < seriesCount; i++) {
    clone.list.add(new HashMap((Map) this.list.get(i)));
  }
  return clone;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns an independent copy of the dataset.  Note that:
 * <ul>
 * <li>the underlying dataset is only cloned if it implements the
 * {@link PublicCloneable} interface;</li>
 * <li>the listeners registered with this dataset are not carried over to
 * the cloned dataset.</li>
 * </ul>
 *
 * @return An independent copy of the dataset.
 *
 * @throws CloneNotSupportedException if the dataset cannot be cloned for
 *         any reason.
 */
public Object clone() throws CloneNotSupportedException {
  XYBarDataset clone = (XYBarDataset) super.clone();
  if (this.underlying instanceof PublicCloneable) {
    PublicCloneable pc = (PublicCloneable) this.underlying;
    clone.underlying = (XYDataset) pc.clone();
  }
  return clone;
}
origin: jfree/jfreechart

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

/**
 * Returns a clone of this dataset.
 *
 * @return A clone of this dataset.
 *
 * @throws CloneNotSupportedException if there is a problem cloning.
 */
public Object clone() throws CloneNotSupportedException {
  XYIntervalSeriesCollection clone
      = (XYIntervalSeriesCollection) super.clone();
  int seriesCount = getSeriesCount();
  clone.data = new java.util.ArrayList(seriesCount);
  for (int i = 0; i < this.data.size(); i++) {
    clone.data.set(i, getSeries(i).clone());
  }
  return clone;
}
origin: jfree/jfreechart

/**
 * Returns a clone of this dataset.
 *
 * @return A clone of this dataset.
 *
 * @throws CloneNotSupportedException if there is a problem cloning.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  XYIntervalSeriesCollection clone
      = (XYIntervalSeriesCollection) super.clone();
  int seriesCount = getSeriesCount();
  clone.data = new java.util.ArrayList(seriesCount);
  for (int i = 0; i < this.data.size(); i++) {
    clone.data.set(i, getSeries(i).clone());
  }
  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 {
  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 an independent copy of this dataset.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is some reason that cloning
 *     cannot be performed.
 */
public Object clone() throws CloneNotSupportedException {
  CategoryTableXYDataset clone = (CategoryTableXYDataset) super.clone();
  clone.values = (DefaultKeyedValues2D) this.values.clone();
  clone.intervalDelegate = new IntervalXYDelegate(clone);
  // need to configure the intervalDelegate to match the original
  clone.intervalDelegate.setFixedIntervalWidth(getIntervalWidth());
  clone.intervalDelegate.setAutoWidth(isAutoWidth());
  clone.intervalDelegate.setIntervalPositionFactor(
      getIntervalPositionFactor());
  return clone;
}
origin: jfree/jfreechart

/**
 * Returns an independent copy of this dataset.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is some reason that cloning
 *     cannot be performed.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  CategoryTableXYDataset clone = (CategoryTableXYDataset) super.clone();
  clone.values = (DefaultKeyedValues2D) this.values.clone();
  clone.intervalDelegate = new IntervalXYDelegate(clone);
  // need to configure the intervalDelegate to match the original
  clone.intervalDelegate.setFixedIntervalWidth(getIntervalWidth());
  clone.intervalDelegate.setAutoWidth(isAutoWidth());
  clone.intervalDelegate.setIntervalPositionFactor(
      getIntervalPositionFactor());
  return clone;
}
org.jfree.data.xyAbstractIntervalXYDatasetclone

Popular methods of AbstractIntervalXYDataset

  • getEndX
  • getEndY
  • getStartX
  • getStartY

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JOptionPane (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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