| java.lang.Object prefuse.data.column.ColumnFactory
ColumnFactory | public class ColumnFactory (Code) | | Factory class for generating appropriate column instances. Used by
Tables to generate their columns.
author: jeffrey heer |
getColumn | final public static Column getColumn(Class type)(Code) | | Get a new column of the given type.
Parameters: type - the column data type the new column |
getColumn | final public static Column getColumn(Class type, int nrows)(Code) | | Get a new column of the given type.
Parameters: type - the column data type Parameters: nrows - the number of rows to include in the column the new column |
getColumn | final public static Column getColumn(Class type, int nrows, Object defaultValue)(Code) | | Get a new column of the given type.
Parameters: type - the column data type Parameters: nrows - the number of rows to include in the column Parameters: defaultValue - the default value for the column the new column |
getColumn | final public static Column getColumn(Class type, int nrows, int nnz, Object defaultValue)(Code) | | Get a new column of the given type.
Parameters: type - the column data type Parameters: nrows - the number of rows to include in the column Parameters: nnz - the number of expected non-zero entries (NOTE: currentlythis value is not being used) Parameters: defaultValue - the default value for the column the new column |
getColumn | final public static Column getColumn(Table t, Expression expr)(Code) | | Get a new column based on the given expression.
Parameters: t - the table the column should be added to Parameters: expr - the expression that should provide the column values the new column |
getConstantColumn | final public static Column getConstantColumn(Class type, Object dflt)(Code) | | Get a new column of a constant value.
Parameters: type - the column data type Parameters: dflt - the default constant value for the column the new column |
|
|