public class Graph
extends 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
Constructor and Description |
---|
Graph(boolean directed) |
Modifier and Type | Method and Description |
---|---|
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.
|
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
addColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTuple
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples
public prefuse.data.Edge addEdge(prefuse.data.Node s, prefuse.data.Node t, java.lang.String name)
public prefuse.data.Node addNode(ResolvedConceptReference rcr, boolean showCode)
public prefuse.data.Node addNode(java.lang.String nodeName)
public prefuse.data.Node addNode(java.lang.String nodeName, java.lang.String propertyLinkId)
public static java.lang.String getNodeName(java.lang.String code, java.lang.String desc, boolean abbreviate, java.lang.String separator)
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