Example usage for org.jfree.data.xy IntervalXYDelegate IntervalXYDelegate

List of usage examples for org.jfree.data.xy IntervalXYDelegate IntervalXYDelegate

Introduction

In this page you can find the example usage for org.jfree.data.xy IntervalXYDelegate IntervalXYDelegate.

Prototype

public IntervalXYDelegate(XYDataset dataset, boolean autoWidth) 

Source Link

Document

Creates a new delegate for the specified dataset.

Usage

From source file:org.jfree.data.xy.DefaultTableXYDataset.java

/**
 * Creates a new empty dataset./*from  w w  w .ja v a  2s.  c  o  m*/
 *
 * @param autoPrune  a flag that controls whether or not x-values are
 *                   removed whenever the corresponding y-values are all
 *                   <code>null</code>.
 */
public DefaultTableXYDataset(boolean autoPrune) {
    this.autoPrune = autoPrune;
    this.data = new ArrayList();
    this.xPoints = new HashSet();
    this.intervalDelegate = new IntervalXYDelegate(this, false);
    addChangeListener(this.intervalDelegate);
}

From source file:org.jfree.data.xy.XYSeriesCollection.java

/**
 * Constructs a dataset and populates it with a single series.
 *
 * @param series  the series (<code>null</code> ignored).
 *//*from   ww w.  j av  a  2  s. co  m*/
public XYSeriesCollection(XYSeries series) {
    this.data = new java.util.ArrayList();
    this.intervalDelegate = new IntervalXYDelegate(this, false);
    addChangeListener(this.intervalDelegate);
    if (series != null) {
        this.data.add(series);
        series.addChangeListener(this);
        series.addVetoableChangeListener(this);
    }
}