prefuse.data |
Table, Graph, and Tree data structures for organizing data.
{@link prefuse.data.Table}
instances store any number of type data in a row and column format. Each column
of data is separately represented in a {@link prefuse.data.column.Column}
instance. Row data can be accessed directly by the row index, or can be
accessed in an object-oriented manner using the {@link prefuse.data.Tuple}
interface. The {@link prefuse.data.CascadedTable} class provides filtered views over
backing Table instances. Table {@link prefuse.data.Schema Schemas} are used to represent
the names, data type, and default values of table columns, and can be used
to instantiate tables of the desired type.
{@link prefuse.data.Graph} and {@link prefuse.data.Tree} instances also use a tabular representation,
using separate data tables to store node and edge data. At the cost of a little
complexity, this allows for a very flexible system. For example, the same data
table can be used as the node table for multiple graphs, supporting efficient
memory use and allowing easy propagation of data changes. Similar to tables,
graphs and trees can be accessed using the row indices of the respective
tables, or through object-oriented Tuple proxies. The
{@link prefuse.data.Node} and {@link prefuse.data.Edge} interfaces
provide a more typical object-oriented API to the graph structure and data.
|
Java Source File Name | Type | Comment |
CascadedTable.java | Class | Table subclass featuring a "cascaded" table design - a CascadedTable can
have a parent table, from which it inherits a potentially filtered set of
rows and columns. |
DataReadOnlyException.java | Class | Exception indicating an attempt to write to a read-only data value was made. |
DataTypeException.java | Class | Exception indicating an incompatible data type assignment. |
Edge.java | Interface | Tuple sub-interface that represents an edge in a graph structure. |
Graph.java | Class | A Graph models a network of nodes connected by a collection of edges.
Both nodes and edges can have any number of associated data fields.
Additionally, edges are either directed or undirected, indicating a
possible directionality of the connection. |
Node.java | Interface | Tuple sub-interface that represents a node in a graph or tree structure. |
Schema.java | Class | The Schema class represents a description of a Table's columns, including
column names, data types, and default values. |
SpanningTree.java | Class | Special tree instance for storing a spanning tree over a graph
instance. |
Table.java | Class | A Table organizes a collection of data into rows and columns, each row
containing a data record, and each column containing data values for a
named data field with a specific data type. |
Tree.java | Class | Graph subclass that models a tree structure of hierarchical
parent-child relationships. |
Tuple.java | Interface | Tuples are objects representing a row of a data table, providing
a simplified interface to table data. |