2.17.2: 2011-06-17

net.sf.basedb.util.plot
Class HistogramPlot.HistogramDataset

java.lang.Object
  extended by org.jfree.data.general.AbstractDataset
      extended by org.jfree.data.general.AbstractSeriesDataset
          extended by net.sf.basedb.util.plot.HistogramPlot.HistogramDataset
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, EventListener, Dataset, SeriesChangeListener, SeriesDataset, IntervalXYDataset, XYDataset
Enclosing class:
HistogramPlot

private static class HistogramPlot.HistogramDataset
extends AbstractSeriesDataset
implements IntervalXYDataset

An dataset implementation for histogram data that allows us to send data to JFreeChart the way we want.


Field Summary
private  List<HistogramPlot.HistogramSeries> all
           
private static long serialVersionUID
           
 
Constructor Summary
private HistogramPlot.HistogramDataset()
           
 
Method Summary
 void addSeries(HistogramPlot.HistogramSeries s)
           
 DomainOrder getDomainOrder()
           
 Number getEndX(int series, int item)
           
 double getEndXValue(int series, int item)
           
 Number getEndY(int series, int item)
           
 double getEndYValue(int series, int item)
           
 int getItemCount(int series)
           
 int getSeriesCount()
           
 Comparable getSeriesKey(int series)
           
 Number getStartX(int series, int item)
           
 double getStartXValue(int series, int item)
           
 Number getStartY(int series, int item)
           
 double getStartYValue(int series, int item)
           
 Number getX(int series, int item)
           
 double getXValue(int series, int item)
           
 Number getY(int series, int item)
           
 double getYValue(int series, int item)
           
 
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChanged
 
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
 
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

all

private final List<HistogramPlot.HistogramSeries> all
Constructor Detail

HistogramPlot.HistogramDataset

private HistogramPlot.HistogramDataset()
Method Detail

getSeriesCount

public int getSeriesCount()
Specified by:
getSeriesCount in interface SeriesDataset
Specified by:
getSeriesCount in class AbstractSeriesDataset

getSeriesKey

public Comparable getSeriesKey(int series)
Specified by:
getSeriesKey in interface SeriesDataset
Specified by:
getSeriesKey in class AbstractSeriesDataset

getDomainOrder

public DomainOrder getDomainOrder()
Specified by:
getDomainOrder in interface XYDataset

getItemCount

public int getItemCount(int series)
Specified by:
getItemCount in interface XYDataset

getX

public Number getX(int series,
                   int item)
Specified by:
getX in interface XYDataset

getXValue

public double getXValue(int series,
                        int item)
Specified by:
getXValue in interface XYDataset

getY

public Number getY(int series,
                   int item)
Specified by:
getY in interface XYDataset

getYValue

public double getYValue(int series,
                        int item)
Specified by:
getYValue in interface XYDataset

getEndX

public Number getEndX(int series,
                      int item)
Specified by:
getEndX in interface IntervalXYDataset

getEndXValue

public double getEndXValue(int series,
                           int item)
Specified by:
getEndXValue in interface IntervalXYDataset

getEndY

public Number getEndY(int series,
                      int item)
Specified by:
getEndY in interface IntervalXYDataset

getEndYValue

public double getEndYValue(int series,
                           int item)
Specified by:
getEndYValue in interface IntervalXYDataset

getStartX

public Number getStartX(int series,
                        int item)
Specified by:
getStartX in interface IntervalXYDataset

getStartXValue

public double getStartXValue(int series,
                             int item)
Specified by:
getStartXValue in interface IntervalXYDataset

getStartY

public Number getStartY(int series,
                        int item)
Specified by:
getStartY in interface IntervalXYDataset

getStartYValue

public double getStartYValue(int series,
                             int item)
Specified by:
getStartYValue in interface IntervalXYDataset

addSeries

public void addSeries(HistogramPlot.HistogramSeries s)

2.17.2: 2011-06-17