com.googlecode.sarasvati.visual.graph
Class AbstractLayoutTree<N>

java.lang.Object
  extended by com.googlecode.sarasvati.visual.graph.AbstractLayoutTree<N>
Direct Known Subclasses:
GraphLayoutTree

public abstract class AbstractLayoutTree<N>
extends Object


Field Summary
protected  Map<N,GraphLayoutNode<N>> nodeMap
           
 
Constructor Summary
AbstractLayoutTree()
           
 
Method Summary
protected abstract  Collection<N> getInputs(N node)
           
protected abstract  Collection<N> getNodes()
           
protected abstract  Collection<N> getOutputs(N node)
           
protected abstract  Collection<N> getStartNodes()
           
 GraphLayoutNode<N> getTreeNode(N node)
           
protected abstract  boolean hasNoInputs(N node)
           
 void init()
           
 boolean isBackArc(N start, N end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeMap

protected Map<N,GraphLayoutNode<N>> nodeMap
Constructor Detail

AbstractLayoutTree

public AbstractLayoutTree()
Method Detail

getNodes

protected abstract Collection<N> getNodes()

getStartNodes

protected abstract Collection<N> getStartNodes()

hasNoInputs

protected abstract boolean hasNoInputs(N node)

getOutputs

protected abstract Collection<N> getOutputs(N node)

getInputs

protected abstract Collection<N> getInputs(N node)

init

public void init()

getTreeNode

public GraphLayoutNode<N> getTreeNode(N node)

isBackArc

public boolean isBackArc(N start,
                         N end)


Copyright © 2012. All Rights Reserved.