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
Collects information about one histogram series. Multiple series may be
added to
HistogramPlot.HistogramDataset
which is then added to JFreeChart.-
Field Summary
Modifier and TypeFieldDescriptionprivate final HistogramPlot.HistogramBin[]
private final String
private static final long
private final HistogramPlot.YAggregate
-
Constructor Summary
ModifierConstructorDescriptionprivate
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
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)
-