org.LexGrid.LexBIG.gui.displayResults
Class Graph

java.lang.Object
  extended by prefuse.data.tuple.AbstractTupleSet
      extended by prefuse.data.tuple.CompositeTupleSet
          extended by prefuse.data.Graph
              extended by org.LexGrid.LexBIG.gui.displayResults.Graph
All Implemented Interfaces:
prefuse.data.tuple.TupleSet

public class Graph
extends prefuse.data.Graph

Overriding the addEdge method of Graph to allow for multiple edges between nodes.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Thomas Johnson, Jason Leisch

Nested Class Summary
 
Nested classes/interfaces inherited from class prefuse.data.Graph
prefuse.data.Graph.Listener
 
Field Summary
 
Fields inherited from class prefuse.data.Graph
DEFAULT_NODE_KEY, DEFAULT_SOURCE_KEY, DEFAULT_TARGET_KEY, EDGES, INDEGREE, INEDGES, INLINKS, LINKS_SCHEMA, m_directed, m_edgeTuples, m_links, m_longKey, m_nidx, m_nkey, m_nodeTuples, m_skey, m_spanning, m_tkey, NODES, OUTDEGREE, OUTEDGES, OUTLINKS, UNDIRECTED
 
Fields inherited from interface prefuse.data.tuple.TupleSet
EMPTY_ARRAY
 
Constructor Summary
Graph(boolean directed)
           
 
Method Summary
 prefuse.data.Edge addEdge(prefuse.data.Node s, prefuse.data.Node t, java.lang.String name)
           
 prefuse.data.Node addNode(ResolvedConceptReference rcr, boolean showCode)
           
 prefuse.data.Node addNode(java.lang.String nodeName)
           
 prefuse.data.Node addNode(java.lang.String nodeName, java.lang.String propertyLinkId)
           
static java.lang.String getNodeName(java.lang.String code, java.lang.String desc, boolean abbreviate, java.lang.String separator)
          Utility method to return the graph based node name for the given concept reference.
 
Methods inherited from class prefuse.data.Graph
addEdge, addEdge, addGraphModelListener, addLink, addNode, addNodeRow, clear, clearEdges, clearSpanningTree, createLinkTable, dispose, edgeCheck, edgeRows, edgeRows, edgeRows, edges, edges, fireGraphEvent, getAdjacentNode, getAdjacentNode, getDegree, getDegree, getEdge, getEdge, getEdge, getEdgeCount, getEdges, getEdgeSourceField, getEdgeTable, getEdgeTargetField, getInDegree, getInDegree, getKey, getNode, getNodeCount, getNodeFromKey, getNodeIndex, getNodeKeyField, getNodes, getNodeTable, getOutDegree, getOutDegree, getSourceNode, getSourceNode, getSpanningTree, getSpanningTree, getTargetNode, getTargetNode, inEdgeRows, inEdges, init, initLinkTable, inNeighbors, isDirected, neighbors, nodeCheck, nodeRows, nodes, outEdgeRows, outEdges, outNeighbors, remLink, removeEdge, removeEdge, removeGraphModelListener, removeNode, removeNode, removeTuple, setEdgeTable, setTupleManagers, tuples, tuples, updateDegrees, updateDegrees, updateNodeData
 
Methods inherited from class prefuse.data.tuple.CompositeTupleSet
addColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTuple
 
Methods inherited from class prefuse.data.tuple.AbstractTupleSet
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph

public Graph(boolean directed)
Method Detail

addEdge

public prefuse.data.Edge addEdge(prefuse.data.Node s,
                                 prefuse.data.Node t,
                                 java.lang.String name)

addNode

public prefuse.data.Node addNode(ResolvedConceptReference rcr,
                                 boolean showCode)

addNode

public prefuse.data.Node addNode(java.lang.String nodeName)

addNode

public prefuse.data.Node addNode(java.lang.String nodeName,
                                 java.lang.String propertyLinkId)

getNodeName

public static java.lang.String getNodeName(java.lang.String code,
                                           java.lang.String desc,
                                           boolean abbreviate,
                                           java.lang.String separator)
Utility method to return the graph based node name for the given concept reference.

Parameters:
code - The concept code to visualize. If null, the code is not included in the returned name.
desc - The concept description; can be null.
abbreviate - If true, the text will be abbreviated if it exceeds a pre-defined limit (with '...' appended). This can be used to accomodate more nodes in horizontal space.
separator - the String to use to separate the code from the description
Returns:
The corresponding node name.

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.