S
- The type of data which this TupleLoader loads data frompublic abstract class TupleLoader<S>
extends java.lang.Object
Constructor and Description |
---|
TupleLoader() |
Modifier and Type | Method and Description |
---|---|
prefuse.data.Tuple |
addData(S data)
Add the data element as a tuple to the table.
|
protected abstract boolean |
dataMatches(S data,
prefuse.data.Tuple tuple)
Determine whether the given data and tuple represent the same data
|
prefuse.data.Tuple |
findTuple(S data)
Find the converted tuple for the specified data element, or null if it
has not been converted.
|
abstract S |
getData(prefuse.data.Tuple tuple)
Get the original data element which matches the provided tuple.
|
java.lang.String |
getLabelField()
Get the name field.
|
prefuse.data.Table |
getTable()
Gets the table.
|
abstract void |
loadData(S data,
prefuse.data.Tuple tuple)
Load data from the data element into the table.
|
void |
setLabelField(java.lang.String field)
Set the name field for the tuple converter.
|
void |
setTable(prefuse.data.Table table)
Sets the table.
|
public prefuse.data.Tuple addData(S data)
data
- the data elementprotected abstract boolean dataMatches(S data, prefuse.data.Tuple tuple)
data
- the data elementtuple
- the tuplepublic prefuse.data.Tuple findTuple(S data)
data
- the specified data elementpublic abstract S getData(prefuse.data.Tuple tuple)
tuple
- the Tuple to matchpublic java.lang.String getLabelField()
public prefuse.data.Table getTable()
public abstract void loadData(S data, prefuse.data.Tuple tuple)
data
- the data elementtuple
- The tuple to loadpublic void setLabelField(java.lang.String field)
field
- the name field used for displaypublic void setTable(prefuse.data.Table table)
table
- the new table