|
||||||||||
| 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.BooleanColumn
public class BooleanColumn
Column implementation storing boolean values. Uses a BitSet representation for space efficient storage.
| Field Summary |
|---|
| Fields inherited from class prefuse.data.column.AbstractColumn |
|---|
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly |
| Constructor Summary | |
|---|---|
BooleanColumn()
Create an empty BooleanColumn. |
|
BooleanColumn(int nrows)
Create a new BooleanColumn. |
|
BooleanColumn(int nrows,
int capacity,
boolean defaultValue)
Create a new BooleanColumn. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int row)
Get the data value at the specified row |
boolean |
getBoolean(int row)
Get the data value at the specified row as a boolean |
int |
getRowCount()
Returns the number of rows in this data column |
void |
set(java.lang.Object val,
int row)
Set the data value at the specified row |
void |
setBoolean(boolean val,
int row)
Set the data value at the specified row as a boolean |
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, getColumnType, getDate, getDefaultValue, getDouble, getFloat, getInt, getLong, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, revertToDefault, 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 BooleanColumn()
public BooleanColumn(int nrows)
nrows - the initial size of the column
public BooleanColumn(int nrows,
int capacity,
boolean defaultValue)
nrows - the initial size of the columncapacity - the initial capacity of the columndefaultValue - the default value for the column| Method Detail |
|---|
public int getRowCount()
Column
Column.getRowCount()public void setMaximumRow(int nrows)
Column
nrows - the number of rowsColumn.setMaximumRow(int)public java.lang.Object get(int row)
Column
row - the row from which to retrieve the value
Column.get(int)
public void set(java.lang.Object val,
int row)
throws DataTypeException
Column
val - the value to setrow - the row at which to set the value
DataTypeExceptionColumn.set(java.lang.Object, int)
public boolean getBoolean(int row)
throws DataTypeException
AbstractColumn
getBoolean in interface ColumngetBoolean in class AbstractColumnrow - the row from which to retrieve the value
DataTypeException - if this column does not
support the boolean typeAbstractColumn.getBoolean(int)
public void setBoolean(boolean val,
int row)
throws DataTypeException
AbstractColumn
setBoolean in interface ColumnsetBoolean in class AbstractColumnval - the value to setrow - the row at which to set the value
DataTypeException - if this column does not
support the boolean typeAbstractColumn.setBoolean(boolean, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||