edu.stanford.smi.protegex.widget.diagram
Class FlowchartGraph
java.lang.Object
|
+--edu.stanford.smi.protegex.widget.diagram.FlowchartGraph
- public class FlowchartGraph
- extends Object
NOTE: The nodes are 1-indexed. 0 is the dummy root! Description of the class
- Author:
- William Grosso
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowchartGraph
public FlowchartGraph(int numNodes)
addEdge
public void addEdge(int from,
int to)
addRoot
public void addRoot(int root)
doLayout
public void doLayout(int numLoops)
throws UnreachableNodesExistException
getDepth
public int getDepth()
getDepthOf
public int getDepthOf(int x)
getLocationOf
public double getLocationOf(int x)
getMaxWidth
public double getMaxWidth()
getNumAllNodes
public int getNumAllNodes()
getNumDummyNodes
public int getNumDummyNodes()
getNumRealNodes
public int getNumRealNodes()
getPositions
public Point[] getPositions(int xScale,
int yScale)
getRow
public int[] getRow(int depth)
getSizeOfRow
public int getSizeOfRow(int depth)
getUnsortedRow
public int[] getUnsortedRow(int depth)
hasEdgeBetween
public boolean hasEdgeBetween(int x,
int y)
isDummyNode
public boolean isDummyNode(int x)
main
public static void main(String[] args)
printAllNodes
public void printAllNodes()
printRange
public void printRange(int from,
int to)
printRealNodes
public void printRealNodes()
reLayout
public void reLayout(int numLoops)
Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.