|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.column.AbstractColumn
prefuse.data.column.ObjectColumn
public class ObjectColumn
Column implementation for storing arbitrary Object values.
| Field Summary |
|---|
| Fields inherited from class prefuse.data.column.AbstractColumn |
|---|
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly |
| Constructor Summary | |
|---|---|
ObjectColumn()
Create a new empty ObjectColumn. |
|
ObjectColumn(java.lang.Class type)
Create a new ObjectColumn. |
|
ObjectColumn(java.lang.Class type,
int nrows)
Create a new ObjectColumn. |
|
ObjectColumn(java.lang.Class type,
int nrows,
int capacity,
java.lang.Object defaultValue)
Create a new ObjectColumn. |
|
ObjectColumn(int nrows)
Create a new ObjectColumn. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int row)
Get the data value at the specified row |
int |
getRowCount()
Returns the number of rows in this data column |
void |
revertToDefault(int row)
Reverts the specified row back to the column's default value. |
void |
set(java.lang.Object val,
int row)
Set the data value at the specified row |
void |
setMaximumRow(int nrows)
Sets the number of rows in this data column |
| Methods inherited from class prefuse.data.column.AbstractColumn |
|---|
addColumnListener, canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, getBoolean, getColumnType, getDate, getDefaultValue, getDouble, getFloat, getInt, getLong, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, setBoolean, setDate, setDefaultValue, setDouble, setFloat, setInt, setLong, setParser, setReadOnly, setString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectColumn()
public ObjectColumn(java.lang.Class type)
type - the data type of Objects in this columnpublic ObjectColumn(int nrows)
nrows - the initial size of the column
public ObjectColumn(java.lang.Class type,
int nrows)
type - the data type of Objects in this columnnrows - the initial size of the column
public ObjectColumn(java.lang.Class type,
int nrows,
int capacity,
java.lang.Object defaultValue)
type - the data type of Objects in this columnnrows - the initial size of the columncapacity - the initial capacity of the columndefaultValue - the default value for the column. If this value
is cloneable, it will be cloned when assigned as defaultValue, otherwise
the input reference will be used for every default value.| Method Detail |
|---|
public int getRowCount()
Column
Column.getRowCount()public void setMaximumRow(int nrows)
Column
nrows - the number of rowsColumn.setMaximumRow(int)public void revertToDefault(int row)
AbstractColumn
revertToDefault in interface ColumnrevertToDefault in class AbstractColumnpublic java.lang.Object get(int row)
row - the row from which to retrieve the value
public void set(java.lang.Object val,
int row)
val - the value to setrow - the row at which to set the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||