public class TableEdgeItem extends TableVisualItem implements EdgeItem
Modifier and Type | Field and Description |
---|---|
protected Graph |
m_graph |
m_row, m_table
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 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, validateBounds
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, validateBounds
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
protected Graph m_graph
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 incidentEdge.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)
Copyright ? 2013 Regents of the University of California