|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.Series
org.jfree.data.MatrixSeries
Represents a dense matrix M[i,j] where each Mij item of the matrix has a value (default is 0).
| Field Summary | |
protected double[][] |
data
Series matrix values |
| Constructor Summary | |
MatrixSeries(java.lang.String name,
int rows,
int columns)
Constructs a new matrix series. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Tests this object instance for equality with an arbitrary object. |
double |
get(int i,
int j)
Returns the value of the specified item in this matrix series. |
int |
getColumnsCount()
Returns the number of columns in this matrix series. |
java.lang.Number |
getItem(int itemIndex)
Return the matrix item at the specified index. |
int |
getItemColumn(int itemIndex)
Returns the column of the specified item. |
int |
getItemCount()
Returns the number of items in the series. |
int |
getItemRow(int itemIndex)
Returns the row of the specified item. |
int |
getRowCount()
Returns the number of rows in this matrix series. |
void |
update(int i,
int j,
double mij)
Updates the value of the specified item in this matrix series. |
void |
zeroAll()
Sets all matrix values to zero and sends a SeriesChangeEvent
to all registered listeners. |
| Methods inherited from class org.jfree.data.Series |
addChangeListener, addPropertyChangeListener, clone, firePropertyChange, fireSeriesChanged, getDescription, getName, getNotify, hashCode, notifyListeners, removeChangeListener, removePropertyChangeListener, setDescription, setName, setNotify |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double[][] data
| Constructor Detail |
public MatrixSeries(java.lang.String name,
int rows,
int columns)
By default, all matrix items are initialzed to 0.
name - series name (null not permitted).rows - the number of rows.columns - the number of columns.| Method Detail |
public int getColumnsCount()
public java.lang.Number getItem(int itemIndex)
itemIndex - item index.
public int getItemColumn(int itemIndex)
itemIndex - the index of the item.
public int getItemCount()
public int getItemRow(int itemIndex)
itemIndex - the index of the item.
public int getRowCount()
public double get(int i,
int j)
i - the row of the item.j - the column of the item.
public void update(int i,
int j,
double mij)
i - the row of the item.j - the column of the item.mij - the new value for the item.public void zeroAll()
SeriesChangeEvent
to all registered listeners.
public boolean equals(java.lang.Object obj)
equals in class Seriesobj - the object (null permitted).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||