Tabnine Logo
VectorSeriesCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
VectorSeriesCollection
in
org.jfree.data.xy

Best Java code snippets using org.jfree.data.xy.VectorSeriesCollection (Showing top 18 results out of 315)

origin: jfree/jfreechart

/**
 * Returns the key for a series.
 *
 * @param series  the series index (in the range {@code 0} to
 *     {@code getSeriesCount() - 1}).
 *
 * @return The key for a series.
 *
 * @throws IllegalArgumentException if {@code series} is not in the
 *     specified range.
 */
@Override
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}
origin: jfree/jfreechart

/**
 * Returns a series from the collection.
 *
 * @param series  the series index (zero-based).
 *
 * @return The series.
 *
 * @throws IllegalArgumentException if {@code series} is not in the
 *     range {@code 0} to {@code getSeriesCount() - 1}.
 */
public VectorSeries getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (VectorSeries) this.data.get(series);
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the x-value for an item within a series.  Note that this method
 * creates a new {@link Double} instance every time it is called---use
 * {@link #getXValue(int, int)} instead, if possible.
 *
 * @param series  the series index.
 * @param item  the item index.
 *
 * @return The x-value.
 */
public Number getX(int series, int item) {
  return new Double(getXValue(series, item));
}
origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

int sercnt = dataset.getSeriesCount();
Integer sernum = (Integer)seriesmap.get(seriesname);
if(sernum!=null)
    seriesmap.put(Integer.valueOf(j), Integer.valueOf(j));
  dataset.addSeries(series);
VectorSeries ser = dataset.getSeries(seriesnum);
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Adds a series to the collection and sends a {@link DatasetChangeEvent}
 * to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 */
public void addSeries(VectorSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null 'series' argument.");
  }
  this.data.add(series);
  series.addChangeListener(this);
  fireDatasetChanged();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the y-value for an item within a series.  Note that this method
 * creates a new {@link Double} instance every time it is called---use
 * {@link #getYValue(int, int)} instead, if possible.
 *
 * @param series  the series index.
 * @param item  the item index.
 *
 * @return The y-value.
 */
public Number getY(int series, int item) {
  return new Double(getYValue(series, item));
}
origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport

boolean autorepaint = getProperty("autorepaint")==null? false: ((Boolean)getProperty("autorepaint")).booleanValue();
XYDataset dataset = new VectorSeriesCollection();
JFreeChart chart = ChartFactory.createXYLineChart(title, labelx, labely, dataset, PlotOrientation.VERTICAL, legend, tooltips, urls);
chart.setNotify(autorepaint);
origin: jfree/jfreechart

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 */
public void removeAllSeries() {
  // deregister the collection as a change listener to each series in the
  // collection
  for (int i = 0; i < this.data.size(); i++) {
    VectorSeries series = (VectorSeries) this.data.get(i);
    series.removeChangeListener(this);
  }
  // remove all the series from the collection and notify listeners.
  this.data.clear();
  fireDatasetChanged();
}
origin: jfree/jfreechart

/**
 * Returns the y-value for an item within a series.  Note that this method
 * creates a new {@link Double} instance every time it is called---use
 * {@link #getYValue(int, int)} instead, if possible.
 *
 * @param series  the series index.
 * @param item  the item index.
 *
 * @return The y-value.
 */
@Override
public Number getY(int series, int item) {
  return new Double(getYValue(series, item));
}
origin: jfree/jfreechart

/**
 * Returns the number of items in the specified series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The item count.
 *
 * @throws IllegalArgumentException if {@code series} is not in the
 *     range {@code 0} to {@code getSeriesCount() - 1}.
 */
@Override
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Removes all the series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 */
public void removeAllSeries() {
  // deregister the collection as a change listener to each series in the
  // collection
  for (int i = 0; i < this.data.size(); i++) {
    VectorSeries series = (VectorSeries) this.data.get(i);
    series.removeChangeListener(this);
  }
  // remove all the series from the collection and notify listeners.
  this.data.clear();
  fireDatasetChanged();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a series from the collection.
 *
 * @param series  the series index (zero-based).
 *
 * @return The series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public VectorSeries getSeries(int series) {
  if ((series < 0) || (series >= getSeriesCount())) {
    throw new IllegalArgumentException("Series index out of bounds");
  }
  return (VectorSeries) this.data.get(series);
}
origin: jfree/jfreechart

/**
 * Returns the x-value for an item within a series.  Note that this method
 * creates a new {@link Double} instance every time it is called---use
 * {@link #getXValue(int, int)} instead, if possible.
 *
 * @param series  the series index.
 * @param item  the item index.
 *
 * @return The x-value.
 */
@Override
public Number getX(int series, int item) {
  return new Double(getXValue(series, item));
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the number of items in the specified series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The item count.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     range <code>0</code> to <code>getSeriesCount() - 1</code>.
 */
public int getItemCount(int series) {
  // defer argument checking
  return getSeries(series).getItemCount();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Removes the specified series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series (<code>null</code> not permitted).
 *
 * @return A boolean indicating whether the series has actually been
 *         removed.
 */
public boolean removeSeries(VectorSeries series) {
  if (series == null) {
    throw new IllegalArgumentException("Null 'series' argument.");
  }
  boolean removed = this.data.remove(series);
  if (removed) {
    series.removeChangeListener(this);
    fireDatasetChanged();
  }
  return removed;
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the key for a series.
 *
 * @param series  the series index (in the range <code>0</code> to
 *     <code>getSeriesCount() - 1</code>).
 *
 * @return The key for a series.
 *
 * @throws IllegalArgumentException if <code>series</code> is not in the
 *     specified range.
 */
public Comparable getSeriesKey(int series) {
  // defer argument checking
  return getSeries(series).getKey();
}
origin: jfree/jfreechart

/**
 * Adds a series to the collection and sends a {@link DatasetChangeEvent}
 * to all registered listeners.
 *
 * @param series  the series ({@code null} not permitted).
 */
public void addSeries(VectorSeries series) {
  Args.nullNotPermitted(series, "series");
  this.data.add(series);
  series.addChangeListener(this);
  fireDatasetChanged();
}
origin: jfree/jfreechart

/**
 * Removes the specified series from the collection and sends a
 * {@link DatasetChangeEvent} to all registered listeners.
 *
 * @param series  the series ({@code null} not permitted).
 *
 * @return A boolean indicating whether the series has actually been
 *         removed.
 */
public boolean removeSeries(VectorSeries series) {
  Args.nullNotPermitted(series, "series");
  boolean removed = this.data.remove(series);
  if (removed) {
    series.removeChangeListener(this);
    fireDatasetChanged();
  }
  return removed;
}
org.jfree.data.xyVectorSeriesCollection

Javadoc

A collection of VectorSeries objects.

Most used methods

  • getSeries
    Returns a series from the collection.
  • getSeriesCount
    Returns the number of series in the collection.
  • fireDatasetChanged
  • getXValue
    Returns the x-value for an item within a series.
  • getYValue
    Returns the y-value for an item within a series.
  • <init>
    Creates a new instance of VectorSeriesCollection.
  • addSeries
    Adds a series to the collection and sends a DatasetChangeEventto all registered listeners.

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Socket (java.net)
    Provides a client-side TCP socket.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text plugins
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