| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectpublic class XYBarDatasetextends AbstractIntervalXYDatasetimplements IntervalXYDataset, DatasetChangeListener, PublicCloneableXYDataset into an
IntervalXYDataset suitable for use in creating XY bar charts.
Constructor Summary | |
| |
Method Summary | |
Object |
|
void |
|
boolean |
|
double |
|
Number |
|
double |
|
Number |
|
double |
|
int |
|
int |
|
Comparable |
|
Number |
|
double |
|
Number |
|
double |
|
XYDataset |
|
Number |
|
double |
|
Number |
|
double |
|
void |
|
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset | |
getEndXValue, getEndYValue, getStartXValue, getStartYValue | |
Methods inherited from class org.jfree.data.xy.AbstractXYDataset | |
getDomainOrder, getXValue, getYValue | |
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset | |
getSeriesCount, getSeriesKey, indexOf, seriesChanged | |
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObject | |
public XYBarDataset(XYDataset underlying, double barWidth)
Creates a new dataset.
- Parameters:
underlying- the underlying dataset (nullnot permitted).barWidth- the width of the bars.
public Object clone() throws CloneNotSupportedException
Returns an independent copy of the dataset. Note that:
- the underlying dataset is only cloned if it implements the
PublicCloneableinterface;- the listeners registered with this dataset are not carried over to the cloned dataset.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- An independent copy of the dataset.
public void datasetChanged(DatasetChangeEvent event)
Receives notification of an dataset change event.
- Specified by:
- datasetChanged in interface DatasetChangeListener
- Parameters:
event- information about the event.
public boolean equals(Object obj)
Tests this dataset for equality with an arbitrary object.
- Parameters:
obj- the object (nullpermitted).
- Returns:
- A boolean.
public double getBarWidth()
Returns the bar width.
- Returns:
- The bar width.
- Since:
- 1.0.4
- See Also:
setBarWidth(double)
public Number getEndX(int series, int item)
Returns the ending X value for the specified series and item.
- Specified by:
- getEndX in interface IntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
public double getEndXValue(int series, int item)
Returns the ending x-value (as a double primitive) for an item within a series.
- Specified by:
- getEndXValue in interface IntervalXYDataset
- Overrides:
- getEndXValue in interface AbstractIntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
- See Also:
getXValue(int,int)
public Number getEndY(int series, int item)
Returns the ending Y value for the specified series and item.
- Specified by:
- getEndY in interface IntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
public double getEndYValue(int series, int item)
Returns the ending y-value (as a double primitive) for an item within a series.
- Specified by:
- getEndYValue in interface IntervalXYDataset
- Overrides:
- getEndYValue in interface AbstractIntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
- See Also:
getYValue(int,int)
public int getItemCount(int series)
Returns the number of items in a series.
- Specified by:
- getItemCount in interface XYDataset
- Parameters:
series- the series index (zero-based).
- Returns:
- The item count.
public int getSeriesCount()
Returns the number of series in the dataset.
- Specified by:
- getSeriesCount in interface SeriesDataset
- Overrides:
- getSeriesCount in interface AbstractSeriesDataset
- Returns:
- The series count.
public Comparable getSeriesKey(int series)
Returns the key for a series.
- Specified by:
- getSeriesKey in interface SeriesDataset
- Overrides:
- getSeriesKey in interface AbstractSeriesDataset
- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).
- Returns:
- The series key.
public Number getStartX(int series, int item)
Returns the starting X value for the specified series and item.
- Specified by:
- getStartX in interface IntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
public double getStartXValue(int series, int item)
Returns the starting x-value (as a double primitive) for an item within a series.
- Specified by:
- getStartXValue in interface IntervalXYDataset
- Overrides:
- getStartXValue in interface AbstractIntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
- See Also:
getXValue(int,int)
public Number getStartY(int series, int item)
Returns the starting Y value for the specified series and item.
- Specified by:
- getStartY in interface IntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
public double getStartYValue(int series, int item)
Returns the starting y-value (as a double primitive) for an item within a series.
- Specified by:
- getStartYValue in interface IntervalXYDataset
- Overrides:
- getStartYValue in interface AbstractIntervalXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
- See Also:
getYValue(int,int)
public XYDataset getUnderlyingDataset()
Returns the underlying dataset that was specified via the constructor.
- Returns:
- The underlying dataset (never
null).
- Since:
- 1.0.4
public Number getX(int series, int item)
Returns the x-value for an item within a series.
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The x-value.
- See Also:
getXValue(int,int)
public double getXValue(int series, int item)
Returns the x-value (as a double primitive) for an item within a series.
- Overrides:
- getXValue in interface AbstractXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
- See Also:
getX(int,int)
public Number getY(int series, int item)
Returns the y-value for an item within a series.
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The y-value (possibly
null).
- See Also:
getYValue(int,int)
public double getYValue(int series, int item)
Returns the y-value (as a double primitive) for an item within a series.
- Overrides:
- getYValue in interface AbstractXYDataset
- Parameters:
series- the series index (zero-based).item- the item index (zero-based).
- Returns:
- The value.
- See Also:
getY(int,int)
public void setBarWidth(double barWidth)
Sets the bar width and sends aDatasetChangeEventto all registered listeners.
- Parameters:
barWidth- the bar width.
- Since:
- 1.0.4
- See Also:
getBarWidth()