Package 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.-
Field Summary
Fields Modifier and Type Field Description private HistogramPlot.HistogramBin[]
bins
private String
name
private static long
serialVersionUID
private HistogramPlot.YAggregate
yAggregate
-
Constructor Summary
Constructors Modifier Constructor Description private
HistogramSeries(String name, float[] xValues, float[] yValues, float binSize, HistogramPlot.YAggregate yAggregate, float xMin, float xMax)
Create a new HistogramSeries.private
HistogramSeries(String name, HistogramPlot.HistogramSeries other, HistogramPlot.YAggregate yAggregate)
Create a new HistogramSeries that is using data from another series. -
Method Summary
Modifier and Type Method Description HistogramPlot.HistogramBin
getBin(int index)
int
getItemCount()
float
getMaxY(int index)
float
getMinY(int index)
String
getName()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
name
-
bins
-
yAggregate
-
-
Constructor Details
-
HistogramSeries
private 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 orFloat.NaN
to let this method calculate itxMax
- The maximum x axis value orFloat.NaN
to let this method calculate it
-
HistogramSeries
private 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
orHistogramPlot.YAggregate.HILOSTDEV
-
-
Method Details
-
getName
-
getItemCount
public int getItemCount() -
getBin
-
getMaxY
public float getMaxY(int index) -
getMinY
public float getMinY(int index)
-