| java.lang.Object org.jfree.data.general.Series org.jfree.data.xy.MatrixSeries
All known Subclasses: org.jfree.data.xy.NormalizedMatrixSeries,
MatrixSeries | public class MatrixSeries extends Series implements Serializable(Code) | | 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 |
Constructor Summary | |
public | MatrixSeries(String name, int rows, int columns) Constructs a new matrix series. |
Method Summary | |
public boolean | equals(Object obj) Tests this object instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public double | get(int i, int j) Returns the value of the specified item in this matrix series.
Parameters: i - the row of the item. Parameters: j - the column of the item. | public int | getColumnsCount() Returns the number of columns in this matrix series. | public Number | getItem(int itemIndex) Return the matrix item at the specified index. | public int | getItemColumn(int itemIndex) Returns the column of the specified item.
Parameters: itemIndex - the index of the item. | public int | getItemCount() Returns the number of items in the series. | public int | getItemRow(int itemIndex) Returns the row of the specified item.
Parameters: itemIndex - the index of the item. | public int | getRowCount() Returns the number of rows in this matrix series. | public void | update(int i, int j, double mij) Updates the value of the specified item in this matrix series. | public void | zeroAll() Sets all matrix values to zero and sends a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners. |
data | protected double[][] data(Code) | | Series matrix values
|
MatrixSeries | public MatrixSeries(String name, int rows, int columns)(Code) | | Constructs a new matrix series.
By default, all matrix items are initialzed to 0.
Parameters: name - series name (null not permitted). Parameters: rows - the number of rows. Parameters: columns - the number of columns. |
equals | public boolean equals(Object obj)(Code) | | Tests this object instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getColumnsCount | public int getColumnsCount()(Code) | | Returns the number of columns in this matrix series.
The number of columns in this matrix series. |
getItem | public Number getItem(int itemIndex)(Code) | | Return the matrix item at the specified index. Note that this method
creates a new Double instance every time it is called.
Parameters: itemIndex - item index. The matrix item at the specified index. See Also: MatrixSeries.get(int,int) |
getItemColumn | public int getItemColumn(int itemIndex)(Code) | | Returns the column of the specified item.
Parameters: itemIndex - the index of the item. The column of the specified item. |
getItemCount | public int getItemCount()(Code) | | Returns the number of items in the series.
The item count. |
getItemRow | public int getItemRow(int itemIndex)(Code) | | Returns the row of the specified item.
Parameters: itemIndex - the index of the item. The row of the specified item. |
getRowCount | public int getRowCount()(Code) | | Returns the number of rows in this matrix series.
The number of rows in this matrix series. |
update | public void update(int i, int j, double mij)(Code) | | Updates the value of the specified item in this matrix series.
Parameters: i - the row of the item. Parameters: j - the column of the item. Parameters: mij - the new value for the item. See Also: MatrixSeries.get(int,int) |
|
|