2.17.2: 2011-06-17

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

java.lang.Object
  extended by net.sf.basedb.util.plot.HistogramPlot.HistogramSeries
All Implemented Interfaces:
Serializable
Enclosing class:
HistogramPlot

private static class HistogramPlot.HistogramSeries
extends Object
implements Serializable

Collects information about one histogram series. Multiple series may be added to HistogramPlot.HistogramDataset which is then added to JFreeChart.


Field Summary
private  HistogramPlot.HistogramBin[] bins
           
private  String name
           
private static long serialVersionUID
           
private  HistogramPlot.YAggregate yAggregate
           
 
Constructor Summary
private HistogramPlot.HistogramSeries(String name, float[] xValues, float[] yValues, float binSize, HistogramPlot.YAggregate yAggregate, float xMin, float xMax)
          Create a new HistogramSeries.
private HistogramPlot.HistogramSeries(String name, HistogramPlot.HistogramSeries other, HistogramPlot.YAggregate yAggregate)
          Create a new HistogramSeries that is using data from another series.
 
Method Summary
 HistogramPlot.HistogramBin getBin(int index)
           
 int getItemCount()
           
 float getMaxY(int index)
           
 float getMinY(int index)
           
 String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

name

private final String name

bins

private final HistogramPlot.HistogramBin[] bins

yAggregate

private final HistogramPlot.YAggregate yAggregate
Constructor Detail

HistogramPlot.HistogramSeries

private HistogramPlot.HistogramSeries(String name,
                                      float[] xValues,
                                      float[] yValues,
                                      float binSize,
                                      HistogramPlot.YAggregate yAggregate,
                                      float xMin,
                                      float xMax)
Create a new HistogramSeries.

Parameters:
name - The name of the seris
xValues - The x values
yValues - The y values or null if no y values are used
binSize - The bin size on the x axis
yAggregate - What to show on the y axis
xMin - The minimum x axis value or Float.NaN to let this method calculate it
xMax - The maximum x axis value or Float.NaN to let this method calculate it

HistogramPlot.HistogramSeries

private HistogramPlot.HistogramSeries(String name,
                                      HistogramPlot.HistogramSeries other,
                                      HistogramPlot.YAggregate yAggregate)
Create a new HistogramSeries that is using data from another series. This is used by for example the high/low series which take it's data from the main series.

Parameters:
name - The name of the series
other - The other series
yAggregate - HistogramPlot.YAggregate.HILOMAXMIN or HistogramPlot.YAggregate.HILOSTDEV
Method Detail

getName

public String getName()

getItemCount

public int getItemCount()

getBin

public HistogramPlot.HistogramBin getBin(int index)

getMaxY

public float getMaxY(int index)

getMinY

public float getMinY(int index)

2.17.2: 2011-06-17