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.CategoryDataset
GraphMatrixNDDataset. 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>
categoriesNames
The categories.protected MatrixND
mat
Storage for the data.protected List<String>
seriesNames
The 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.int
getColumnCount()
int
getColumnIndex(Comparable key)
Comparable
getColumnKey(int column)
List
getColumnKeys()
int
getRowCount()
int
getRowIndex(Comparable key)
Comparable
getRowKey(int row)
List
getRowKeys()
int
getSeriesCount()
Comparable
getSeriesKey(int series)
Number
getValue(int row, int column)
Number
getValue(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:
getSeriesCount
in interfaceorg.jfree.data.general.SeriesDataset
- Specified by:
getSeriesCount
in classorg.jfree.data.general.AbstractSeriesDataset
-
getSeriesKey
public Comparable getSeriesKey(int series)
- Specified by:
getSeriesKey
in interfaceorg.jfree.data.general.SeriesDataset
- Specified by:
getSeriesKey
in classorg.jfree.data.general.AbstractSeriesDataset
-
getColumnIndex
public int getColumnIndex(Comparable key)
- Specified by:
getColumnIndex
in interfaceorg.jfree.data.KeyedValues2D
-
getColumnKey
public Comparable getColumnKey(int column)
- Specified by:
getColumnKey
in interfaceorg.jfree.data.KeyedValues2D
-
getColumnKeys
public List getColumnKeys()
- Specified by:
getColumnKeys
in interfaceorg.jfree.data.KeyedValues2D
-
getRowIndex
public int getRowIndex(Comparable key)
- Specified by:
getRowIndex
in interfaceorg.jfree.data.KeyedValues2D
-
getRowKey
public Comparable getRowKey(int row)
- Specified by:
getRowKey
in interfaceorg.jfree.data.KeyedValues2D
-
getRowKeys
public List getRowKeys()
- Specified by:
getRowKeys
in interfaceorg.jfree.data.KeyedValues2D
-
getValue
public Number getValue(Comparable rowKey, Comparable columnKey)
- Specified by:
getValue
in interfaceorg.jfree.data.KeyedValues2D
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceorg.jfree.data.Values2D
-
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interfaceorg.jfree.data.Values2D
-
getValue
public Number getValue(int row, int column)
- Specified by:
getValue
in interfaceorg.jfree.data.Values2D
-
-