Protege-2000 1.7

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

Constructor Summary
FlowchartGraph(int numNodes)
           
 
Method Summary
 void addEdge(int from, int to)
           
 void addRoot(int root)
           
 void doLayout(int numLoops)
           
 int getDepth()
           
 int getDepthOf(int x)
           
 double getLocationOf(int x)
           
 double getMaxWidth()
           
 int getNumAllNodes()
           
 int getNumDummyNodes()
           
 int getNumRealNodes()
           
 Point[] getPositions(int xScale, int yScale)
           
 int[] getRow(int depth)
           
 int getSizeOfRow(int depth)
           
 int[] getUnsortedRow(int depth)
           
 boolean hasEdgeBetween(int x, int y)
           
 boolean isDummyNode(int x)
           
static void main(String[] args)
           
 void printAllNodes()
           
 void printRange(int from, int to)
           
 void printRealNodes()
           
 void reLayout(int numLoops)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowchartGraph

public FlowchartGraph(int numNodes)
Method Detail

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)

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.