public class GraphMatrixNDDataset
extends org.jfree.data.general.AbstractSeriesDataset
implements org.jfree.data.category.CategoryDataset
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
categoriesNames
The categories.
|
protected MatrixND |
mat
Storage for the data.
|
protected List<String> |
seriesNames
The series names.
|
| Constructor and 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) |
| Modifier and Type | Method and 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(Comparable rowKey,
Comparable columnKey) |
Number |
getValue(int row,
int column) |
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectprotected MatrixND mat
public GraphMatrixNDDataset(MatrixND mat)
public GraphMatrixNDDataset(List<?> series, List<?> categories, MatrixND mat)
series - series names.categories - categories.mat - matrix.protected List<String> generateNames(int count, String prefix)
count - number of names required.prefix - name prefix.public int getSeriesCount()
getSeriesCount in interface org.jfree.data.general.SeriesDatasetgetSeriesCount in class org.jfree.data.general.AbstractSeriesDatasetpublic Comparable getSeriesKey(int series)
getSeriesKey in interface org.jfree.data.general.SeriesDatasetgetSeriesKey in class org.jfree.data.general.AbstractSeriesDatasetpublic int getColumnIndex(Comparable key)
getColumnIndex in interface org.jfree.data.KeyedValues2Dpublic Comparable getColumnKey(int column)
getColumnKey in interface org.jfree.data.KeyedValues2Dpublic List getColumnKeys()
getColumnKeys in interface org.jfree.data.KeyedValues2Dpublic int getRowIndex(Comparable key)
getRowIndex in interface org.jfree.data.KeyedValues2Dpublic Comparable getRowKey(int row)
getRowKey in interface org.jfree.data.KeyedValues2Dpublic List getRowKeys()
getRowKeys in interface org.jfree.data.KeyedValues2Dpublic Number getValue(Comparable rowKey, Comparable columnKey)
getValue in interface org.jfree.data.KeyedValues2Dpublic int getColumnCount()
getColumnCount in interface org.jfree.data.Values2Dpublic int getRowCount()
getRowCount in interface org.jfree.data.Values2Dpublic Number getValue(int row, int column)
getValue in interface org.jfree.data.Values2DCopyright © 2004–2020 Code Lutin. All rights reserved.