public class TableEdgeItem extends TableVisualItem implements EdgeItem
| Modifier and Type | Field and Description |
|---|---|
protected Graph |
m_graph |
m_row, m_tableBOUNDS, 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 and Description |
|---|
TableEdgeItem() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBounds, getDOI, getEndFillColor, getEndFont, getEndSize, getEndStrokeColor, getEndTextColor, getEndX, getEndY, getFillColor, getFont, getGroup, getRenderer, getShape, getSize, getSourceData, getSourceTuple, getStartFillColor, getStartFont, getStartSize, getStartStrokeColor, getStartTextColor, getStartX, getStartY, getStroke, getStrokeColor, getTextColor, getVisualization, getX, getY, isEndVisible, isExpanded, isFixed, isHighlighted, isHover, isInGroup, isInteractive, isStartVisible, isValidated, isVisible, render, setBounds, setDOI, setEndFillColor, setEndFont, setEndSize, setEndStrokeColor, setEndTextColor, setEndVisible, setEndX, setEndY, setExpanded, setFillColor, setFixed, setFont, setHighlighted, setHover, setInteractive, setShape, setSize, setStartFillColor, setStartFont, setStartSize, setStartStrokeColor, setStartTextColor, setStartVisible, setStartX, setStartY, setStroke, setStrokeColor, setTextColor, setValidated, setVisible, setX, setY, toString, validateBoundscanGet, 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, setStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBounds, getDOI, getEndFillColor, getEndFont, getEndSize, getEndStrokeColor, getEndTextColor, getEndX, getEndY, getFillColor, getFont, getGroup, getRenderer, getShape, getSize, getSourceData, getSourceTuple, getStartFillColor, getStartFont, getStartSize, getStartStrokeColor, getStartTextColor, getStartX, getStartY, getStroke, getStrokeColor, getTextColor, getVisualization, getX, getY, isEndVisible, isExpanded, isFixed, isHighlighted, isHover, isInGroup, isInteractive, isStartVisible, isValidated, isVisible, render, setBounds, setDOI, setEndFillColor, setEndFont, setEndSize, setEndStrokeColor, setEndTextColor, setEndVisible, setEndX, setEndY, setExpanded, setFillColor, setFixed, setFont, setHighlighted, setHover, setInteractive, setShape, setSize, setStartFillColor, setStartFont, setStartSize, setStartStrokeColor, setStartTextColor, setStartVisible, setStartX, setStartY, setStroke, setStrokeColor, setTextColor, setValidated, setVisible, setX, setY, validateBoundscanGet, 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, setStringprotected Graph m_graph
protected void init(Table table, Graph graph, int row)
init in class TableVisualItemtable - the backing VisualTablegraph - the backing VisualGraphrow - the row in the node table to which this Edge instance
corresponds.public Graph getGraph()
EdgegetGraph in interface EdgeEdge.getGraph()public boolean isDirected()
EdgeisDirected in interface EdgeEdge.isDirected()public Node getSourceNode()
EdgegetSourceNode in interface EdgeEdge.getSourceNode()public Node getTargetNode()
EdgegetTargetNode in interface EdgeEdge.getTargetNode()public Node getAdjacentNode(Node n)
EdgegetAdjacentNode in interface Edgen - a Node upon which this Edge is incidentEdge.getAdjacentNode(prefuse.data.Node)public NodeItem getSourceItem()
EdgeItemgetSourceItem in interface EdgeItemEdgeItem.getSourceItem()public NodeItem getTargetItem()
EdgeItemgetTargetItem in interface EdgeItemEdgeItem.getTargetItem()public NodeItem getAdjacentItem(NodeItem n)
EdgeItemgetAdjacentItem in interface EdgeItemn - 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)