suitable for use in creating XY bar charts.
| Method from org.jfree.data.xy.XYBarDataset Detail: |
public Object clone() throws CloneNotSupportedException {
XYBarDataset clone = (XYBarDataset) super.clone();
if (this.underlying instanceof PublicCloneable) {
PublicCloneable pc = (PublicCloneable) this.underlying;
clone.underlying = (XYDataset) pc.clone();
}
return clone;
}
Returns an independent copy of the dataset. Note that:
- the underlying dataset is only cloned if it implements the
PublicCloneable interface;
- the listeners registered with this dataset are not carried over to
the cloned dataset.
|
public void datasetChanged(DatasetChangeEvent event) {
notifyListeners(event);
}
Receives notification of an dataset change event. |
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof XYBarDataset)) {
return false;
}
XYBarDataset that = (XYBarDataset) obj;
if (!this.underlying.equals(that.underlying)) {
return false;
}
if (this.barWidth != that.barWidth) {
return false;
}
return true;
}
Tests this dataset for equality with an arbitrary object. |
public double getBarWidth() {
return this.barWidth;
}
|
public Number getEndX(int series,
int item) {
Number result = null;
Number xnum = this.underlying.getX(series, item);
if (xnum != null) {
result = new Double(xnum.doubleValue() + this.barWidth / 2.0);
}
return result;
}
Returns the ending X value for the specified series and item. |
public double getEndXValue(int series,
int item) {
return getXValue(series, item) + this.barWidth / 2.0;
}
Returns the ending x-value (as a double primitive) for an item within
a series. |
public Number getEndY(int series,
int item) {
return this.underlying.getY(series, item);
}
Returns the ending Y value for the specified series and item. |
public double getEndYValue(int series,
int item) {
return getYValue(series, item);
}
Returns the ending y-value (as a double primitive) for an item within
a series. |
public int getItemCount(int series) {
return this.underlying.getItemCount(series);
}
Returns the number of items in a series. |
public int getSeriesCount() {
return this.underlying.getSeriesCount();
}
Returns the number of series in the dataset. |
public Comparable getSeriesKey(int series) {
return this.underlying.getSeriesKey(series);
}
Returns the key for a series. |
public Number getStartX(int series,
int item) {
Number result = null;
Number xnum = this.underlying.getX(series, item);
if (xnum != null) {
result = new Double(xnum.doubleValue() - this.barWidth / 2.0);
}
return result;
}
Returns the starting X value for the specified series and item. |
public double getStartXValue(int series,
int item) {
return getXValue(series, item) - this.barWidth / 2.0;
}
Returns the starting x-value (as a double primitive) for an item within
a series. |
public Number getStartY(int series,
int item) {
return this.underlying.getY(series, item);
}
Returns the starting Y value for the specified series and item. |
public double getStartYValue(int series,
int item) {
return getYValue(series, item);
}
Returns the starting y-value (as a double primitive) for an item within
a series. |
public XYDataset getUnderlyingDataset() {
return this.underlying;
}
Returns the underlying dataset that was specified via the constructor. |
public Number getX(int series,
int item) {
return this.underlying.getX(series, item);
}
Returns the x-value for an item within a series. |
public double getXValue(int series,
int item) {
return this.underlying.getXValue(series, item);
}
Returns the x-value (as a double primitive) for an item within a series. |
public Number getY(int series,
int item) {
return this.underlying.getY(series, item);
}
Returns the y-value for an item within a series. |
public double getYValue(int series,
int item) {
return this.underlying.getYValue(series, item);
}
Returns the y-value (as a double primitive) for an item within a series. |
public void setBarWidth(double barWidth) {
this.barWidth = barWidth;
notifyListeners(new DatasetChangeEvent(this, this));
}
|