| org.jfree.data.general.AbstractSeriesDataset org.jfree.data.category.DefaultIntervalCategoryDataset
DefaultIntervalCategoryDataset | public class DefaultIntervalCategoryDataset extends AbstractSeriesDataset implements IntervalCategoryDataset(Code) | | 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 Summary | |
public | DefaultIntervalCategoryDataset(double[][] starts, double[][] ends) Creates a new dataset. | public | DefaultIntervalCategoryDataset(Number[][] starts, Number[][] ends) Constructs a dataset and populates it with data from the array.
The arrays are indexed as data[series][category]. | 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. | 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. |
Method Summary | |
public Object | clone() Returns a clone of this dataset. | public boolean | equals(Object obj) Tests this dataset for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public List | getCategories() 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.
Parameters: category - the category (null not permitted). | public int | getColumnCount() Returns the number of categories in the dataset. | public int | getColumnIndex(Comparable columnKey) Returns a column index.
Parameters: columnKey - the column key (null not permitted). | public Comparable | getColumnKey(int column) Returns a column key.
Parameters: column - the column index. | public List | getColumnKeys() Returns a list of the categories in the dataset. | public Number | getEndValue(Comparable series, Comparable category) Returns the end data value for one category in a series.
Parameters: series - the required series. Parameters: category - the required category. | public Number | getEndValue(int series, int category) Returns the end data value for one category in a series.
Parameters: series - the required series (zero based index). Parameters: category - the required category. | public int | getItemCount() 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.
Parameters: rowKey - the row key. | public Comparable | getRowKey(int row) Returns the name of the specified series.
Parameters: row - the index of the required row/series (zero-based). | public List | getRowKeys() Returns a list of the series in the dataset. | public List | getSeries() 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.
Parameters: seriesKey - the series key. | public Comparable | getSeriesKey(int series) Returns the name of the specified series.
Parameters: series - the index of the required series (zero-based). | public Number | getStartValue(Comparable series, Comparable category) Returns the start data value for one category in a series.
Parameters: series - the required series. Parameters: category - the required category. | public Number | getStartValue(int series, int category) Returns the start data value for one category in a series.
Parameters: series - the required series (zero based index). Parameters: category - the required category. | 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. | 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. | 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. |
DefaultIntervalCategoryDataset | public DefaultIntervalCategoryDataset(double[][] starts, double[][] ends)(Code) | | Creates a new dataset.
Parameters: starts - the starting values for the intervals. Parameters: ends - the ending values for the intervals. |
DefaultIntervalCategoryDataset | public DefaultIntervalCategoryDataset(String[] seriesNames, Number[][] starts, Number[][] ends)(Code) | | 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. Parameters: starts - the start values data, indexed as data[series][category]. Parameters: ends - the end values data, indexed as data[series][category]. |
DefaultIntervalCategoryDataset | public DefaultIntervalCategoryDataset(Comparable[] seriesKeys, Comparable[] categoryKeys, Number[][] starts, Number[][] ends)(Code) | | 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. Parameters: categoryKeys - the categories. Parameters: starts - the start values data, indexed as data[series][category]. Parameters: ends - the end values data, indexed as data[series][category]. |
equals | public boolean equals(Object obj)(Code) | | Tests this dataset for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getValue | public Number getValue(Comparable series, Comparable category)(Code) | | 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.
Parameters: series - The required series (zero based index). Parameters: category - The required category. The data value for one category in a series (null possible). See Also: DefaultIntervalCategoryDataset.getEndValue(Comparable,Comparable) |
getValue | public Number getValue(int series, int category)(Code) | | 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.
Parameters: series - the required series (zero based index). Parameters: category - the required category. The data value for one category in a series (null possible). See Also: DefaultIntervalCategoryDataset.getEndValue(int,int) |
|
|