Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.Series
org.jfree.data.xy.MatrixSeries
org.jfree.data.xy.NormalizedMatrixSeries
public class NormalizedMatrixSeries
extends MatrixSeries
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 |
|
Fields inherited from class org.jfree.data.xy.MatrixSeries | |
data |
Constructor Summary | |
|
Method Summary | |
Number |
|
double |
|
void |
|
void |
|
void |
|
Methods inherited from class org.jfree.data.xy.MatrixSeries | |
equals , get , getColumnsCount , getItem , getItemColumn , getItemCount , getItemRow , getRowCount , update , zeroAll |
Methods inherited from class org.jfree.data.general.Series | |
addChangeListener , addPropertyChangeListener , clone , equals , firePropertyChange , fireSeriesChanged , getDescription , getKey , getNotify , hashCode , notifyListeners , removeChangeListener , removePropertyChangeListener , setDescription , setKey , setNotify |
public static final double DEFAULT_SCALE_FACTOR
The default scale factor.
- Field Value:
- 1.0
public NormalizedMatrixSeries(String name, int rows, int columns)
Constructor for NormalizedMatrixSeries.
- Parameters:
name
- the series name.rows
- the number of rows.columns
- the number of columns.
public Number getItem(int itemIndex)
Returns an item.
- Overrides:
- getItem in interface MatrixSeries
- Parameters:
itemIndex
- the index.
- Returns:
- The value.
- See Also:
MatrixSeries.getItem(int)
public double getScaleFactor()
Returns the factor that multiplies each item in this series when observed using getItem mehtod.
- Returns:
- The factor
public void setScaleFactor(double factor)
Sets the factor that multiplies each item in this series when observed using getItem mehtod.
- Parameters:
factor
- new factor to set.
- See Also:
DEFAULT_SCALE_FACTOR
public void update(int i, int j, double mij)
- Overrides:
- update in interface MatrixSeries
- See Also:
MatrixSeries.update(int,int,double)
public void zeroAll()
- Overrides:
- zeroAll in interface MatrixSeries
- See Also:
MatrixSeries.zeroAll()