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

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

An implementation variant of the TableXYDataset where every series shares the same x-values (required for generating stacked area charts). This implementation uses a DefaultKeyedValues2D Object as backend implementation and is hence more "category oriented" than the DefaultTableXYDataset implementation.

This implementation provides no means to remove data items yet. This is due to the lack of such facility in the DefaultKeyedValues2D class.

This class also implements the IntervalXYDataset interface, but this implementation is provisional.
Constructor:
 public CategoryTableXYDataset() 
Method from org.jfree.data.xy.CategoryTableXYDataset Summary:
add,   add,   clone,   equals,   getDomainBounds,   getDomainLowerBound,   getDomainUpperBound,   getEndX,   getEndY,   getIntervalPositionFactor,   getIntervalWidth,   getItemCount,   getItemCount,   getSeriesCount,   getSeriesKey,   getStartX,   getStartY,   getX,   getY,   isAutoWidth,   remove,   remove,   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.CategoryTableXYDataset Detail:
 public  void add(double x,
    double y,
    String seriesName) 
    Adds a data item to this dataset and sends a DatasetChangeEvent to all registered listeners.
 public  void add(Number x,
    Number y,
    String seriesName,
    boolean notify) 
    Adds a data item to this dataset and, if requested, sends a DatasetChangeEvent to all registered listeners.
 public Object clone() throws CloneNotSupportedException 
    Returns an independent copy of this dataset.
 public boolean equals(Object obj) 
    Tests this dataset 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 full interval width.
 public int getItemCount() 
    Returns the number of x values in the dataset.
 public int getItemCount(int series) 
 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 item) 
    Returns the y-value for the specified series and item.
 public boolean isAutoWidth() 
    Returns whether the interval width is automatically calculated or not.
 public  void remove(double x,
    String seriesName) 
    Removes a value from the dataset.
 public  void remove(Number x,
    String seriesName,
    boolean notify) 
    Removes an item from the dataset.
 public  void setAutoWidth(boolean b) 
    Sets the flag that indicates whether the interval width is automatically calculated or not.
 public  void setIntervalPositionFactor(double d) 
    Sets the interval position factor. Must be between 0.0 and 1.0 inclusive. If the factor is 0.5, the gap is in the middle of the x values. If it is lesser than 0.5, the gap is farther to the left and if greater than 0.5 it gets farther to the right.
 public  void setIntervalWidth(double d) 
    Sets the interval width to a fixed value, and sends a DatasetChangeEvent to all registered listeners.