net.sf.basedb.util.plot
Class HistogramPlot.HistogramSeries
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 serisxValues
- The x valuesyValues
- The y values or null if no y values are usedbinSize
- The bin size on the x axisyAggregate
- What to show on the y axisxMin
- The minimum x axis value or Float.NaN
to let this method calculate itxMax
- 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 seriesother
- The other seriesyAggregate
- HistogramPlot.YAggregate.HILOMAXMIN
or HistogramPlot.YAggregate.HILOSTDEV
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)