com.aspose.cells
Class CellsDataTableFactory

java.lang.Object
    extended by com.aspose.cells.CellsDataTableFactory

public class CellsDataTableFactory 
extends java.lang.Object

Utility to build ICellsDataTable from custom objects for user's convenience.


Method Summary
ICellsDataTablegetInstance(double[] vals, boolean vertial)
           Creates ICellsDataTable from given sequence of double values.
ICellsDataTablegetInstance(double[] vals, java.lang.String[] columnNames)
           Creates ICellsDataTable from given sequence of double values.
ICellsDataTablegetInstance(double[][] vals)
           Creates ICellsDataTable from given 2D array.
ICellsDataTablegetInstance(int[] vals, boolean vertial)
           Creates ICellsDataTable from given sequence of int values.
ICellsDataTablegetInstance(int[] vals, java.lang.String[] columnNames)
           Creates ICellsDataTable from given sequence of int values.
ICellsDataTablegetInstance(int[][] vals)
           Creates ICellsDataTable from given 2D array.
ICellsDataTablegetInstance(java.lang.Object[] vals, boolean vertial)
           Creates ICellsDataTable from given sequence of objects.
ICellsDataTablegetInstance(java.lang.Object[] vals, java.lang.String[] columnNames)
           Creates ICellsDataTable from given sequence of objects.
ICellsDataTablegetInstance(java.lang.Object[][] vals)
           Creates ICellsDataTable from given 2D array.
ICellsDataTablegetInstance(java.util.Collection collection)
           Creates ICellsDataTable from given collection.
 

Method Detail

getInstance

public ICellsDataTable getInstance(int[] vals, java.lang.String[] columnNames)
Creates ICellsDataTable from given sequence of int values.
Parameters:
vals - int values to build table
columnNames - Column names of the table. Its length can only be either 1(build table by the int values vertically) or length of the int values(build table by the int values horizontally)
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(int[] vals, boolean vertial)
Creates ICellsDataTable from given sequence of int values.
Parameters:
vals - int values to build table
vertial - whether build table by the int values vertiacally(true) or horizontally(false)
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(double[] vals, java.lang.String[] columnNames)
Creates ICellsDataTable from given sequence of double values.
Parameters:
vals - double values to build table
columnNames - Column names of the table. Its length can only be either 1(build table by the double values vertically) or length of the double values(build table by the double values horizontally)
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(double[] vals, boolean vertial)
Creates ICellsDataTable from given sequence of double values.
Parameters:
vals - double values to build table
vertial - whether build table by the double values vertiacally(true) or horizontally(false)
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(java.lang.Object[] vals, java.lang.String[] columnNames)
Creates ICellsDataTable from given sequence of objects.
Parameters:
vals - objects to build table
columnNames - Column names of the table. Its length can only be either 1(build table by the objects vertically) or length of the objects(build table by the objects horizontally)
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(java.lang.Object[] vals, boolean vertial)
Creates ICellsDataTable from given sequence of objects.
Parameters:
vals - objects to build table
vertial - whether build table by the objects vertiacally(true) or horizontally(false)
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(int[][] vals)
Creates ICellsDataTable from given 2D array.
Parameters:
vals - int values to build table
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(double[][] vals)
Creates ICellsDataTable from given 2D array.
Parameters:
vals - double values to build table
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(java.lang.Object[][] vals)
Creates ICellsDataTable from given 2D array.
Parameters:
vals - objects to build table
Returns:
Instance of ICellsDataTable

getInstance

public ICellsDataTable getInstance(java.util.Collection collection)
Creates ICellsDataTable from given collection.
Parameters:
collection - the collection to build table
Returns:
Instance of ICellsDataTable

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.