Save This Page
Home » jcommon-1.0.13 » org.jfree » data » xy » [javadoc | source]
org.jfree.data.xy
public class: DefaultIntervalXYDataset [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.DefaultIntervalXYDataset

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

A dataset that defines a range (interval) for both the x-values and the y-values. This implementation uses six arrays to store the x, start-x, end-x, y, start-y and end-y values.

An alternative implementation of the IntervalXYDataset interface is provided by the XYIntervalSeriesCollection class.
Constructor:
 public DefaultIntervalXYDataset() 
Method from org.jfree.data.xy.DefaultIntervalXYDataset Summary:
addSeries,   clone,   equals,   getEndX,   getEndXValue,   getEndY,   getEndYValue,   getItemCount,   getSeriesCount,   getSeriesKey,   getStartX,   getStartXValue,   getStartY,   getStartYValue,   getX,   getXValue,   getY,   getYValue,   hashCode
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.DefaultIntervalXYDataset Detail:
 public  void addSeries(Comparable seriesKey,
    double[][] data) 
    Adds a series or if a series with the same key already exists replaces the data for that series, then sends a DatasetChangeEvent to all registered listeners.
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of this dataset.
 public boolean equals(Object obj) 
    Tests this DefaultIntervalXYDataset instance for equality with an arbitrary object. This method returns true if and only if:
    • obj is not null;
    • obj is an instance of DefaultIntervalXYDataset;
    • both datasets have the same number of series, each containing exactly the same values.
 public Number getEndX(int series,
    int item) 
    Returns the ending x-value for an item within a series.
 public double getEndXValue(int series,
    int item) 
    Returns the ending x-value for an item within a series.
 public Number getEndY(int series,
    int item) 
    Returns the ending y-value for an item within a series.
 public double getEndYValue(int series,
    int item) 
    Returns the ending y-value for an item within a series.
 public int getItemCount(int series) 
    Returns the number of items in the specified 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 an item within a series.
 public double getStartXValue(int series,
    int item) 
    Returns the starting x-value for an item within a series.
 public Number getStartY(int series,
    int item) 
    Returns the starting y-value for an item within a series.
 public double getStartYValue(int series,
    int item) 
    Returns the starting y-value for an item within a series.
 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 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 for an item within a series.
 public int hashCode() 
    Returns a hash code for this instance.