Class GraphMatrixNDDataset
- java.lang.Object
-
- org.jfree.data.general.AbstractDataset
-
- org.jfree.data.general.AbstractSeriesDataset
-
- org.nuiton.math.matrix.viewer.renderer.jfreechart.GraphMatrixNDDataset
-
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,EventListener,org.jfree.data.category.CategoryDataset,org.jfree.data.general.Dataset,org.jfree.data.general.SeriesChangeListener,org.jfree.data.general.SeriesDataset,org.jfree.data.KeyedValues2D,org.jfree.data.Values2D
public class GraphMatrixNDDataset extends org.jfree.data.general.AbstractSeriesDataset implements org.jfree.data.category.CategoryDatasetGraphMatrixNDDataset. Created: Fri May 17 16:26:19 2002- Version:
- $Revision$
- Author:
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>categoriesNamesThe categories.protected MatrixNDmatStorage for the data.protected List<String>seriesNamesThe series names.
-
Constructor Summary
Constructors Constructor Description GraphMatrixNDDataset(List<?> series, List<?> categories, MatrixND mat)Constructs a GraphMatrixNDDataset, populates it with the matrix, and uses the supplied names for the series and the supplied objects for the categories.GraphMatrixNDDataset(MatrixND mat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>generateNames(int count, String prefix)Generates an array of names, by appending a space plus an integer (starting with 1) to the supplied prefix string.intgetColumnCount()intgetColumnIndex(Comparable key)ComparablegetColumnKey(int column)ListgetColumnKeys()intgetRowCount()intgetRowIndex(Comparable key)ComparablegetRowKey(int row)ListgetRowKeys()intgetSeriesCount()ComparablegetSeriesKey(int series)NumbergetValue(int row, int column)NumbergetValue(Comparable rowKey, Comparable columnKey)-
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
-
-
-
-
Constructor Detail
-
GraphMatrixNDDataset
public GraphMatrixNDDataset(MatrixND mat)
-
GraphMatrixNDDataset
public GraphMatrixNDDataset(List<?> series, List<?> categories, MatrixND mat)
Constructs a GraphMatrixNDDataset, populates it with the matrix, and uses the supplied names for the series and the supplied objects for the categories.- Parameters:
series- series names.categories- categories.mat- matrix.
-
-
Method Detail
-
generateNames
protected List<String> generateNames(int count, String prefix)
Generates an array of names, by appending a space plus an integer (starting with 1) to the supplied prefix string.- Parameters:
count- number of names required.prefix- name prefix.
-
getSeriesCount
public int getSeriesCount()
- Specified by:
getSeriesCountin interfaceorg.jfree.data.general.SeriesDataset- Specified by:
getSeriesCountin classorg.jfree.data.general.AbstractSeriesDataset
-
getSeriesKey
public Comparable getSeriesKey(int series)
- Specified by:
getSeriesKeyin interfaceorg.jfree.data.general.SeriesDataset- Specified by:
getSeriesKeyin classorg.jfree.data.general.AbstractSeriesDataset
-
getColumnIndex
public int getColumnIndex(Comparable key)
- Specified by:
getColumnIndexin interfaceorg.jfree.data.KeyedValues2D
-
getColumnKey
public Comparable getColumnKey(int column)
- Specified by:
getColumnKeyin interfaceorg.jfree.data.KeyedValues2D
-
getColumnKeys
public List getColumnKeys()
- Specified by:
getColumnKeysin interfaceorg.jfree.data.KeyedValues2D
-
getRowIndex
public int getRowIndex(Comparable key)
- Specified by:
getRowIndexin interfaceorg.jfree.data.KeyedValues2D
-
getRowKey
public Comparable getRowKey(int row)
- Specified by:
getRowKeyin interfaceorg.jfree.data.KeyedValues2D
-
getRowKeys
public List getRowKeys()
- Specified by:
getRowKeysin interfaceorg.jfree.data.KeyedValues2D
-
getValue
public Number getValue(Comparable rowKey, Comparable columnKey)
- Specified by:
getValuein interfaceorg.jfree.data.KeyedValues2D
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceorg.jfree.data.Values2D
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceorg.jfree.data.Values2D
-
getValue
public Number getValue(int row, int column)
- Specified by:
getValuein interfaceorg.jfree.data.Values2D
-
-