Class DataMatrix

java.lang.Object
com.storedobject.chart.DataMatrix

public class DataMatrix extends Object
Represents a matrix of data. Data can be added as rows to the matrix. This class provides methods to access rows and columns of the matrix as DataProviders.
     -- Fruit Production in Million Tons --
     Fruits     | Apple | Orange | Grapes |
     Years
     2011       | 23.4  | 34.5   | 56.7   |
     2012       | 25.2  | 36.2   | 60.1   |
     2013       | 20.9  | 39.5   | 59.7   |
     2014       | 23.7  | 40.1   | 66.7   |

     setName("Fruit Production in Million Tons");
     setColumnName("Fruits");
     setColumnNames("Apple", "Orange", "Grapes");
     setRowName("Years");
     setRowNames("2011", "2012", "2013", "2014");
     addRow(23.4, 34.5, 56.7);
     addRow(25.2, 36.2, 60.1);
     addRow(20.9, 39.5, 59.7);
     addRow(23.7, 40.1, 66.7);
 
Author:
Syam