Save This Page
Home » jcommon-1.0.13 » org.jfree » data » xy » [javadoc | source]
org.jfree.data.xy
public class: XYBarDataset [javadoc | source]
java.lang.Object
   org.jfree.data.general.AbstractDataset
      org.jfree.data.general.AbstractSeriesDataset
         org.jfree.data.xy.AbstractXYDataset
            org.jfree.data.xy.AbstractIntervalXYDataset
               org.jfree.data.xy.XYBarDataset

All Implemented Interfaces:
    PublicCloneable, IntervalXYDataset, DatasetChangeListener, XYDataset, SeriesDataset, Serializable, SeriesChangeListener, Cloneable, Dataset, ObjectInputValidation

A dataset wrapper class that converts a standard XYDataset into an IntervalXYDataset suitable for use in creating XY bar charts.
Constructor:
 public XYBarDataset(XYDataset underlying,
    double barWidth) 
    Creates a new dataset.
    Parameters:
    underlying - the underlying dataset (null not permitted).
    barWidth - the width of the bars.
Method from org.jfree.data.xy.XYBarDataset Summary:
clone,   datasetChanged,   equals,   getBarWidth,   getEndX,   getEndXValue,   getEndY,   getEndYValue,   getItemCount,   getSeriesCount,   getSeriesKey,   getStartX,   getStartXValue,   getStartY,   getStartYValue,   getUnderlyingDataset,   getX,   getXValue,   getY,   getYValue,   setBarWidth
Methods from org.jfree.data.xy.AbstractIntervalXYDataset:
getEndXValue,   getEndYValue,   getStartXValue,   getStartYValue
Methods from org.jfree.data.xy.AbstractXYDataset:
getDomainOrder,   getXValue,   getYValue
Methods from org.jfree.data.general.AbstractSeriesDataset:
getSeriesCount,   getSeriesKey,   indexOf,   seriesChanged
Methods from org.jfree.data.general.AbstractDataset:
addChangeListener,   clone,   fireDatasetChanged,   getGroup,   hasListener,   notifyListeners,   removeChangeListener,   setGroup,   validateObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.xy.XYBarDataset Detail:
 public Object clone() throws CloneNotSupportedException 
    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) 
    Receives notification of an dataset change event.
 public boolean equals(Object obj) 
    Tests this dataset for equality with an arbitrary object.
 public double getBarWidth() 
    Returns the bar width.
 public Number getEndX(int series,
    int item) 
    Returns the ending X value for the specified series and item.
 public double getEndXValue(int series,
    int item) 
    Returns the ending x-value (as a double primitive) for an item within a series.
 public Number getEndY(int series,
    int item) 
    Returns the ending Y value for the specified series and item.
 public double getEndYValue(int series,
    int item) 
    Returns the ending y-value (as a double primitive) for an item within a series.
 public int getItemCount(int series) 
    Returns the number of items in a series.
 public int getSeriesCount() 
    Returns the number of series in the dataset.
 public Comparable getSeriesKey(int series) 
    Returns the key for a series.
 public Number getStartX(int series,
    int item) 
    Returns the starting X value for the specified series and item.
 public double getStartXValue(int series,
    int item) 
    Returns the starting x-value (as a double primitive) for an item within a series.
 public Number getStartY(int series,
    int item) 
    Returns the starting Y value for the specified series and item.
 public double getStartYValue(int series,
    int item) 
    Returns the starting y-value (as a double primitive) for an item within a series.
 public XYDataset getUnderlyingDataset() 
    Returns the underlying dataset that was specified via the constructor.
 public Number getX(int series,
    int item) 
    Returns the x-value for an item within a series.
 public double getXValue(int series,
    int item) 
    Returns the x-value (as a double primitive) for an item within a series.
 public Number getY(int series,
    int item) 
    Returns the y-value for an item within a series.
 public double getYValue(int series,
    int item) 
    Returns the y-value (as a double primitive) for an item within a series.
 public  void setBarWidth(double barWidth)