|
||||||||||
| 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
org.jfree.data.NormalizedMatrixSeries
Represents a dense normalized matrix M[i,j] where each Mij item of the
matrix has a value (default is 0). When a matrix item is observed using
getItem method, it is normalized, that is, divided by the
total sum of all items. It can be also be scaled by setting a scale factor.
| Field Summary | |
static double |
DEFAULT_SCALE_FACTOR
The default scale factor. |
| Fields inherited from class org.jfree.data.MatrixSeries |
data |
| Constructor Summary | |
NormalizedMatrixSeries(java.lang.String name,
int rows,
int columns)
Constructor for NormalizedMatrixSeries. |
|
| Method Summary | |
java.lang.Number |
getItem(int itemIndex)
Returns an item. |
double |
getScaleFactor()
Returns the factor that multiplies each item in this series when observed using getItem mehtod. |
void |
setScaleFactor(double factor)
Sets the factor that multiplies each item in this series when observed using getItem mehtod. |
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.MatrixSeries |
equals, get, getColumnsCount, getItemColumn, getItemCount, getItemRow, getRowCount |
| 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 |
public static final double DEFAULT_SCALE_FACTOR
| Constructor Detail |
public NormalizedMatrixSeries(java.lang.String name,
int rows,
int columns)
name - the series name.rows - the number of rows.columns - the number of columns.| Method Detail |
public java.lang.Number getItem(int itemIndex)
getItem in class MatrixSeriesitemIndex - the index.
MatrixSeries.getItem(int)public void setScaleFactor(double factor)
factor - new factor to set.DEFAULT_SCALE_FACTORpublic double getScaleFactor()
public void update(int i,
int j,
double mij)
MatrixSeries
update in class MatrixSeriesi - the row of the item.j - the column of the item.mij - the new value for the item.MatrixSeries.update(int, int, double)public void zeroAll()
MatrixSeriesSeriesChangeEvent
to all registered listeners.
zeroAll in class MatrixSeriesMatrixSeries.zeroAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||