prefuse.visual
Interface EdgeItem

All Superinterfaces:
Edge, Tuple, VisualItem
All Known Implementing Classes:
TableEdgeItem

public interface EdgeItem
extends VisualItem, Edge

VisualItem that represents an edge in a graph. This interface combines the VisualItem interface with the Edge interface.

Author:
jeffrey heer

Field Summary
 
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
 
Method Summary
 NodeItem getAdjacentItem(NodeItem n)
          Get the NodeItem connected to the given NodeItem by this edge.
 NodeItem getSourceItem()
          Get the first, or source, NodeItem upon which this edge is incident.
 NodeItem getTargetItem()
          Get the second, or target, NodeItem upon which this edge is incident.
 
Methods inherited from interface prefuse.visual.VisualItem
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
 
Methods inherited from interface prefuse.data.Edge
getAdjacentNode, getGraph, getSourceNode, getTargetNode, isDirected
 
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
 

Method Detail

getSourceItem

NodeItem getSourceItem()
Get the first, or source, NodeItem upon which this edge is incident.

Returns:
the source NodeItem

getTargetItem

NodeItem getTargetItem()
Get the second, or target, NodeItem upon which this edge is incident.

Returns:
the target NodeItem

getAdjacentItem

NodeItem getAdjacentItem(NodeItem n)
Get the NodeItem connected to the given NodeItem by this edge.

Parameters:
n - a NodeItem upon which this edge is incident. If this item is not connected to this edge, a runtime exception will be thrown.
Returns:
the other NodeItem connected to this edge


Copyright © 2007 Regents of the University of California