org.jfree.data.xy
Class XYBarDataset
- Cloneable, Dataset, DatasetChangeListener, EventListener, IntervalXYDataset, ObjectInputValidation, Serializable, SeriesChangeListener, SeriesDataset, XYDataset
void | datasetChanged(DatasetChangeEvent event) - Receives notification of an dataset change event.
|
Number | getEndX(int series, int item) - Returns the ending X value for the specified series and item.
|
Number | getEndY(int series, int item) - Returns the ending Y value for the specified series and item.
|
int | getItemCount(int series) - Returns the number of items in a series.
|
int | getSeriesCount() - Returns the number of series in the dataset.
|
Comparable | getSeriesKey(int series) - Returns the key for a series.
|
Number | getStartX(int series, int item) - Returns the starting X value for the specified series and item.
|
Number | getStartY(int series, int item) - Returns the starting Y value for the specified series and item.
|
Number | getX(int series, int item) - Returns the x-value for an item within a series.
|
Number | getY(int series, int item) - Returns the y-value for an item within a series.
|
XYBarDataset
public XYBarDataset(XYDataset underlying,
double barWidth)
Creates a new dataset.
underlying
- the underlying dataset.barWidth
- the width of the bars.
getEndX
public Number getEndX(int series,
int item)
Returns the ending X value for the specified series and item.
- getEndX in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
getEndY
public Number getEndY(int series,
int item)
Returns the ending Y value for the specified series and item.
- getEndY in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
getStartX
public Number getStartX(int series,
int item)
Returns the starting X value for the specified series and item.
- getStartX in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
getStartY
public Number getStartY(int series,
int item)
Returns the starting Y value for the specified series and item.
- getStartY in interface IntervalXYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
getX
public Number getX(int series,
int item)
Returns the x-value for an item within a series. The x-values may or
may not be returned in ascending order, that is up to the class
implementing the interface.
- getX in interface XYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
getY
public Number getY(int series,
int item)
Returns the y-value for an item within a series.
- getY in interface XYDataset
series
- the series index (zero-based).item
- the item index (zero-based).
- The y-value (possibly
null
).