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

All Implemented Interfaces:
    IntervalCategoryDataset, SeriesDataset, Serializable, SeriesChangeListener, Cloneable, Dataset, ObjectInputValidation

A convenience class that provides a default implementation of the IntervalCategoryDataset interface.

The standard constructor accepts data in a two dimensional array where the first dimension is the series, and the second dimension is the category.
Constructor:
 public DefaultIntervalCategoryDataset(double[][] starts,
    double[][] ends) 
 public DefaultIntervalCategoryDataset(Number[][] starts,
    Number[][] ends) 
    Parameters:
    starts - the start values data.
    ends - the end values data.
 public DefaultIntervalCategoryDataset(String[] seriesNames,
    Number[][] starts,
    Number[][] ends) 
    Constructs a DefaultIntervalCategoryDataset, populates it with data from the arrays, and uses the supplied names for the series.

    Category names are generated automatically ("Category 1", "Category 2", etc).

    Parameters:
    seriesNames - the series names (if null, series names will be generated automatically).
    starts - the start values data, indexed as data[series][category].
    ends - the end values data, indexed as data[series][category].
 public DefaultIntervalCategoryDataset(Comparable[] seriesKeys,
    Comparable[] categoryKeys,
    Number[][] starts,
    Number[][] ends) 
    Constructs a DefaultIntervalCategoryDataset, populates it with data from the arrays, and uses the supplied names for the series and the supplied objects for the categories.
    Parameters:
    seriesKeys - the series keys (if null, series keys will be generated automatically).
    categoryKeys - the category keys (if null, category keys will be generated automatically).
    starts - the start values data, indexed as data[series][category].
    ends - the end values data, indexed as data[series][category].
Method from org.jfree.data.category.DefaultIntervalCategoryDataset Summary:
clone,   equals,   getCategories,   getCategoryCount,   getCategoryIndex,   getColumnCount,   getColumnIndex,   getColumnKey,   getColumnKeys,   getEndValue,   getEndValue,   getItemCount,   getRowCount,   getRowIndex,   getRowKey,   getRowKeys,   getSeries,   getSeriesCount,   getSeriesIndex,   getSeriesKey,   getStartValue,   getStartValue,   getValue,   getValue,   setCategoryKeys,   setEndValue,   setSeriesKeys,   setStartValue
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.category.DefaultIntervalCategoryDataset Detail:
 public Object clone() throws CloneNotSupportedException 
    Returns a clone of this dataset.
 public boolean equals(Object obj) 
    Tests this dataset for equality with an arbitrary object.
 public List getCategories() 
Deprecated! Use - #getColumnKeys() instead.

    Returns a list of the categories in the dataset.
 public int getCategoryCount() 
    Returns the number of categories in the dataset.
 public int getCategoryIndex(Comparable category) 
    Returns the index for the given category.
 public int getColumnCount() 
    Returns the number of categories in the dataset. This method is part of the CategoryDataset interface.
 public int getColumnIndex(Comparable columnKey) 
    Returns a column index.
 public Comparable getColumnKey(int column) 
    Returns a column key.
 public List getColumnKeys() 
    Returns a list of the categories in the dataset. This method supports the CategoryDataset interface.
 public Number getEndValue(Comparable series,
    Comparable category) 
    Returns the end data value for one category in a series.
 public Number getEndValue(int series,
    int category) 
    Returns the end data value for one category in a series.
 public int getItemCount() 
Deprecated! Use - #getCategoryCount() instead.

    Returns the item count.
 public int getRowCount() 
    Returns the number of series in the dataset (possibly zero).
 public int getRowIndex(Comparable rowKey) 
    Returns a row index.
 public Comparable getRowKey(int row) 
    Returns the name of the specified series.
 public List getRowKeys() 
    Returns a list of the series in the dataset. This method supports the CategoryDataset interface.
 public List getSeries() 
Deprecated! Use - #getRowKeys() instead.

    Returns a list of the series in the dataset.
 public int getSeriesCount() 
    Returns the number of series in the dataset (possibly zero).
 public int getSeriesIndex(Comparable seriesKey) 
    Returns a series index.
 public Comparable getSeriesKey(int series) 
    Returns the name of the specified series.
 public Number getStartValue(Comparable series,
    Comparable category) 
    Returns the start data value for one category in a series.
 public Number getStartValue(int series,
    int category) 
    Returns the start data value for one category in a series.
 public Number getValue(Comparable series,
    Comparable category) 
    Returns the data value for one category in a series.

    This method is part of the CategoryDataset interface. Not particularly meaningful for this class...returns the end value.

 public Number getValue(int series,
    int category) 
    Returns the data value for one category in a series.

    This method is part of the CategoryDataset interface. Not particularly meaningful for this class...returns the end value.

 public  void setCategoryKeys(Comparable[] categoryKeys) 
    Sets the categories for the dataset.
 public  void setEndValue(int series,
    Comparable category,
    Number value) 
    Sets the end data value for one category in a series.
 public  void setSeriesKeys(Comparable[] seriesKeys) 
    Sets the names of the series in the dataset.
 public  void setStartValue(int series,
    Comparable category,
    Number value) 
    Sets the start data value for one category in a series.