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

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

Represents a collection of XYSeries objects that can be used as a dataset.
Constructor:
 public XYSeriesCollection() 
 public XYSeriesCollection(XYSeries series) 
    Constructs a dataset and populates it with a single series.
    Parameters:
    series - the series (null ignored).
Method from org.jfree.data.xy.XYSeriesCollection Summary:
addSeries,   clone,   equals,   getDomainBounds,   getDomainLowerBound,   getDomainUpperBound,   getEndX,   getEndY,   getIntervalPositionFactor,   getIntervalWidth,   getItemCount,   getSeries,   getSeries,   getSeries,   getSeriesCount,   getSeriesKey,   getStartX,   getStartY,   getX,   getY,   hashCode,   indexOf,   isAutoWidth,   removeAllSeries,   removeSeries,   removeSeries,   setAutoWidth,   setIntervalPositionFactor,   setIntervalWidth
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.XYSeriesCollection Detail:
 public  void addSeries(XYSeries series) 
    Adds a series to the collection and sends a DatasetChangeEvent to all registered listeners.
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of this instance.
 public boolean equals(Object obj) 
    Tests this collection for equality with an arbitrary object.
 public Range getDomainBounds(boolean includeInterval) 
    Returns the range of the values in this dataset's domain.
 public double getDomainLowerBound(boolean includeInterval) 
    Returns the minimum x-value in the dataset.
 public double getDomainUpperBound(boolean includeInterval) 
    Returns the maximum x-value in the dataset.
 public Number getEndX(int series,
    int item) 
    Returns the ending X value for the specified series and item.
 public Number getEndY(int series,
    int item) 
    Returns the ending Y value for the specified series and item.
 public double getIntervalPositionFactor() 
    Returns the interval position factor.
 public double getIntervalWidth() 
    Returns the interval width. This is used to calculate the start and end x-values, if/when the dataset is used as an IntervalXYDataset .
 public int getItemCount(int series) 
    Returns the number of items in the specified series.
 public List getSeries() 
    Returns a list of all the series in the collection.
 public XYSeries getSeries(int series) 
    Returns a series from the collection.
 public XYSeries getSeries(Comparable key) 
    Returns a series from the collection.
 public int getSeriesCount() 
    Returns the number of series in the collection.
 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 Number getStartY(int series,
    int item) 
    Returns the starting Y value for the specified series and item.
 public Number getX(int series,
    int item) 
    Returns the x-value for the specified series and item.
 public Number getY(int series,
    int index) 
    Returns the y-value for the specified series and item.
 public int hashCode() 
    Returns a hash code.
 public int indexOf(XYSeries series) 
    Returns the index of the specified series, or -1 if that series is not present in the dataset.
 public boolean isAutoWidth() 
    Returns whether the interval width is automatically calculated or not.
 public  void removeAllSeries() 
    Removes all the series from the collection and sends a DatasetChangeEvent to all registered listeners.
 public  void removeSeries(int series) 
    Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners.
 public  void removeSeries(XYSeries series) 
    Removes a series from the collection and sends a DatasetChangeEvent to all registered listeners.
 public  void setAutoWidth(boolean b) 
    Sets the flag that indicates wether the interval width is automatically calculated or not.
 public  void setIntervalPositionFactor(double factor) 
    Sets the interval position factor. This controls where the x-value is in relation to the interval surrounding the x-value (0.0 means the x-value will be positioned at the start, 0.5 in the middle, and 1.0 at the end).
 public  void setIntervalWidth(double width)