|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.column.AbstractColumn prefuse.data.column.DateColumn
public class DateColumn
Column implementation for storing Date values.
Field Summary |
---|
Fields inherited from class prefuse.data.column.AbstractColumn |
---|
m_columnType, m_defaultValue, m_listeners, m_parser, m_readOnly |
Constructor Summary | |
---|---|
DateColumn()
Create a new empty DateColumn. |
|
DateColumn(java.lang.Class type,
int nrows)
Create a new DateColumn. |
|
DateColumn(java.lang.Class type,
int nrows,
int capacity,
long defaultValue)
Create a new DateColumn. |
|
DateColumn(int nrows)
Create a new DateColumn. |
Method Summary | |
---|---|
boolean |
canSet(java.lang.Class type)
Indicates if the set method can be called without an exception being thrown for the given type. |
java.lang.Object |
get(int row)
Get the data value at the specified row |
double |
getDouble(int row)
Get the data value at the specified row as a double |
long |
getLong(int row)
Get the data value at the specified row as a long |
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 |
setLong(long val,
int row)
Set the data value at the specified row as a long |
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, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, fireColumnEvent, getBoolean, getColumnType, getDate, getDefaultValue, getFloat, getInt, getParser, getString, isCellEditable, isReadOnly, removeColumnListener, revertToDefault, setBoolean, setDate, setDefaultValue, setDouble, setFloat, setInt, setParser, setReadOnly, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateColumn()
public DateColumn(int nrows)
nrows
- the initial size of the columnpublic DateColumn(java.lang.Class type, int nrows)
type
- the exact data type (must be an instance or
subclass of java.util.Date)nrows
- the initial size of the columnpublic DateColumn(java.lang.Class type, int nrows, int capacity, long defaultValue)
type
- the exact data type (must be an instance or
subclass of java.util.Date)nrows
- the initial size of the columncapacity
- the initial capacity of the columndefaultValue
- the default value for the columnMethod Detail |
---|
public int getRowCount()
Column
Column.getRowCount()
public void setMaximumRow(int nrows)
Column
nrows
- the number of rowsColumn.setMaximumRow(int)
public boolean canSet(java.lang.Class type)
canSet
in interface Column
canSet
in class AbstractColumn
type
- the Class of the data type to check
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
DataTypeException
Column.set(java.lang.Object, int)
public long getLong(int row) throws DataTypeException
AbstractColumn
getLong
in interface Column
getLong
in class AbstractColumn
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the long typeAbstractColumn.getLong(int)
public void setLong(long val, int row) throws DataTypeException
AbstractColumn
setLong
in interface Column
setLong
in class AbstractColumn
val
- the value to setrow
- the row at which to set the value
DataTypeException
- if this column does not
support the long typeAbstractColumn.setLong(long, int)
public double getDouble(int row) throws DataTypeException
AbstractColumn
getDouble
in interface Column
getDouble
in class AbstractColumn
row
- the row from which to retrieve the value
DataTypeException
- if this column does not
support the double typeColumn.getDouble(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |