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

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JLabel (javax.swing)
  • Best plugins for Eclipse
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