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
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe categories.protected MatrixNDStorage for the data.The series names. -
Constructor Summary
ConstructorsConstructorDescriptionGraphMatrixNDDataset(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. -
Method Summary
Modifier and TypeMethodDescriptiongenerateNames(int count, String prefix) Generates an array of names, by appending a space plus an integer (starting with 1) to the supplied prefix string.intintgetColumnIndex(Comparable key) getColumnKey(int column) intintgetRowIndex(Comparable key) getRowKey(int row) intgetSeriesKey(int series) getValue(int row, int column) getValue(Comparable rowKey, Comparable columnKey) Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChangedMethods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Field Details
-
seriesNames
The series names. -
categoriesNames
The categories. -
mat
Storage for the data.
-
-
Constructor Details
-
GraphMatrixNDDataset
-
GraphMatrixNDDataset
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 Details
-
generateNames
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
- Specified by:
getSeriesKeyin interfaceorg.jfree.data.general.SeriesDataset- Specified by:
getSeriesKeyin classorg.jfree.data.general.AbstractSeriesDataset
-
getColumnIndex
- Specified by:
getColumnIndexin interfaceorg.jfree.data.KeyedValues2D
-
getColumnKey
- Specified by:
getColumnKeyin interfaceorg.jfree.data.KeyedValues2D
-
getColumnKeys
- Specified by:
getColumnKeysin interfaceorg.jfree.data.KeyedValues2D
-
getRowIndex
- Specified by:
getRowIndexin interfaceorg.jfree.data.KeyedValues2D
-
getRowKey
- Specified by:
getRowKeyin interfaceorg.jfree.data.KeyedValues2D
-
getRowKeys
- Specified by:
getRowKeysin interfaceorg.jfree.data.KeyedValues2D
-
getValue
- 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
- Specified by:
getValuein interfaceorg.jfree.data.Values2D
-