private static class HistogramPlot.HistogramSeries extends Object implements Serializable
HistogramPlot.HistogramDataset
which is then added to JFreeChart.Modifier and Type | Field and Description |
---|---|
private HistogramPlot.HistogramBin[] |
bins |
private String |
name |
private static long |
serialVersionUID |
private HistogramPlot.YAggregate |
yAggregate |
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
HistogramPlot.HistogramBin |
getBin(int index) |
int |
getItemCount() |
float |
getMaxY(int index) |
float |
getMinY(int index) |
String |
getName() |
private static final long serialVersionUID
private final String name
private final HistogramPlot.HistogramBin[] bins
private final HistogramPlot.YAggregate yAggregate
private HistogramPlot.HistogramSeries(String name, float[] xValues, float[] yValues, float binSize, HistogramPlot.YAggregate yAggregate, float xMin, float xMax)
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 itprivate HistogramPlot.HistogramSeries(String name, HistogramPlot.HistogramSeries other, HistogramPlot.YAggregate yAggregate)
name
- The name of the seriesother
- The other seriesyAggregate
- HistogramPlot.YAggregate.HILOMAXMIN
or HistogramPlot.YAggregate.HILOSTDEV
public String getName()
public int getItemCount()
public HistogramPlot.HistogramBin getBin(int index)
public float getMaxY(int index)
public float getMinY(int index)