Package prefuse.data.tuple

Implementing classes for data tuples, object proxies to a row of table data.

See: Description

Package prefuse.data.tuple Description

Implementing classes for data tuples, object proxies to a row of table data. Prefuse data tables can be accessed and manipulated directly, indexed by row numbers, but that is not always the most convenient. The Tuple interface provides an object-relational mapping, providing an object-oriented interface to a row of table data. Furthermore, tuples provide enhanced safety, as a deleted row will result in an invalidated tuple, while a row index provides no such guarantees.

Groups of tuples can be collected and monitored using the TupleSet interface, which Table, Graph, and Tree all implement. Other TupleSet instances can be used to collect Tuples from any number of backing tables (DefaultTupleSet) or aggregate multiple TupleSets (CompositeTupleSet).

Graph nodes and edges are also represented as Tuples, with additional methods for accessing the underlying graph structure. Any methods that reference a tree structure will first request a spanning tree from the backing graph.

Tuples are created and stored by TupleManager instances. To customize tuple creation, one needs to register the appropriate concrete Tuple type with an enclosing data table. This is done using the Table.Table(int,int,Class) constructor.

Copyright ? 2013 Regents of the University of California