|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.tuple.TableTuple prefuse.visual.tuple.TableVisualItem prefuse.visual.tuple.TableEdgeItem
public class TableEdgeItem
EdgeItem implementation that used data values from a backing VisualTable of edges.
Field Summary | |
---|---|
protected Graph |
m_graph
|
Fields inherited from class prefuse.data.tuple.TableTuple |
---|
m_row, m_table |
Fields inherited from interface prefuse.visual.VisualItem |
---|
BOUNDS, DOI, ENDFILLCOLOR, ENDFONT, ENDPOLYGON, ENDSIZE, ENDSTROKECOLOR, ENDTEXTCOLOR, ENDVISIBLE, ENDX, ENDX2, ENDY, ENDY2, EXPANDED, FILLCOLOR, FIXED, FONT, HIGHLIGHT, HOVER, IDX_VALIDATED, INTERACTIVE, LABEL, POLYGON, SCHEMA, SHAPE, SIZE, STARTFILLCOLOR, STARTFONT, STARTPOLYGON, STARTSIZE, STARTSTROKECOLOR, STARTTEXTCOLOR, STARTVISIBLE, STARTX, STARTX2, STARTY, STARTY2, STROKE, STROKECOLOR, TEXTCOLOR, VALIDATED, VALUE, VISIBLE, X, X2, Y, Y2 |
Constructor Summary | |
---|---|
TableEdgeItem()
|
Method Summary | |
---|---|
NodeItem |
getAdjacentItem(NodeItem n)
Get the NodeItem connected to the given NodeItem by this edge. |
Node |
getAdjacentNode(Node n)
Given a Node upon which this Edge is incident, the opposite incident Node is returned. |
Graph |
getGraph()
Returns the graph of which this Edge is a member. |
NodeItem |
getSourceItem()
Get the first, or source, NodeItem upon which this edge is incident. |
Node |
getSourceNode()
Returns the first, or source, node upon which this Edge is incident. |
NodeItem |
getTargetItem()
Get the second, or target, NodeItem upon which this edge is incident. |
Node |
getTargetNode()
Returns the second, or target, node upon which this Edge is incident. |
protected void |
init(Table table,
Graph graph,
int row)
Initialize a new TableEdgeItem for the given graph, table, and row. |
boolean |
isDirected()
Indicates if this edge is directed or undirected. |
Methods inherited from class prefuse.data.tuple.TableTuple |
---|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface prefuse.data.Tuple |
---|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
Field Detail |
---|
protected Graph m_graph
Constructor Detail |
---|
public TableEdgeItem()
Method Detail |
---|
protected void init(Table table, Graph graph, int row)
init
in class TableVisualItem
table
- the backing VisualTablegraph
- the backing VisualGraphrow
- the row in the node table to which this Edge instance
corresponds.public Graph getGraph()
Edge
getGraph
in interface Edge
Edge.getGraph()
public boolean isDirected()
Edge
isDirected
in interface Edge
Edge.isDirected()
public Node getSourceNode()
Edge
getSourceNode
in interface Edge
Edge.getSourceNode()
public Node getTargetNode()
Edge
getTargetNode
in interface Edge
Edge.getTargetNode()
public Node getAdjacentNode(Node n)
Edge
getAdjacentNode
in interface Edge
n
- a Node upon which this Edge is incident
Edge.getAdjacentNode(prefuse.data.Node)
public NodeItem getSourceItem()
EdgeItem
getSourceItem
in interface EdgeItem
EdgeItem.getSourceItem()
public NodeItem getTargetItem()
EdgeItem
getTargetItem
in interface EdgeItem
EdgeItem.getTargetItem()
public NodeItem getAdjacentItem(NodeItem n)
EdgeItem
getAdjacentItem
in interface EdgeItem
n
- a NodeItem upon which this edge is incident. If this item
is not connected to this edge, a runtime exception will be thrown.
EdgeItem.getAdjacentItem(prefuse.visual.NodeItem)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |