org.bdgp.cv.datamodel
Class DAGUtil

java.lang.Object
  |
  +--org.bdgp.cv.datamodel.DAGUtil

public class DAGUtil
extends java.lang.Object


Constructor Summary
DAGUtil()
           
 
Method Summary
static boolean contains(DAGNode a, DAGNode b)
           
static boolean contains(javax.swing.tree.TreeModel model, java.lang.Object a, java.lang.Object b)
           
static void displayNode(DAGNode in)
           
static void displayNode(javax.swing.tree.TreeModel model, java.lang.Object in)
           
static DAGModel getMinimalDAG(DAGModel model, java.lang.Object node)
           
static DAGNode getMinimalDAG(DAGNode node)
           
static javax.swing.tree.TreePath[] getPathsToNode(DAGModel model, java.lang.Object node)
           
static javax.swing.tree.TreePath[] getPathsToNode(DAGNode node)
           
static java.util.Vector getPathsToNodeAsVector(DAGModel model, java.lang.Object node)
           
static java.util.Vector getPathsToNodeAsVector(DAGNode node)
           
static javax.swing.tree.TreePath[] getPathsToNodes(DAGModel model, java.util.Vector nodes)
           
static javax.swing.tree.TreePath[] getPathsToNodes(java.util.Vector nodes)
           
static java.util.Vector getPathsToNodesAsVector(DAGModel model, java.util.Vector nodes)
           
static java.util.Vector getPathsToNodesAsVector(java.util.Vector nodes)
           
static javax.swing.tree.TreeNode getRoot(javax.swing.tree.TreeNode node)
           
static java.util.Vector getUniqueNodes(DAGNode node)
           
static java.util.Vector getUniqueNodes(javax.swing.tree.TreeModel model, java.lang.Object node)
           
static boolean isParentOf(DAGModel model, java.lang.Object a, java.lang.Object b)
           
static DAGModel minimalDAGHelper(org.bdgp.cv.datamodel.MinimalDAGModel out, DAGModel model, java.lang.Object node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAGUtil

public DAGUtil()
Method Detail

getUniqueNodes

public static java.util.Vector getUniqueNodes(DAGNode node)

getUniqueNodes

public static java.util.Vector getUniqueNodes(javax.swing.tree.TreeModel model,
                                              java.lang.Object node)

displayNode

public static void displayNode(DAGNode in)

displayNode

public static void displayNode(javax.swing.tree.TreeModel model,
                               java.lang.Object in)

contains

public static boolean contains(DAGNode a,
                               DAGNode b)

contains

public static boolean contains(javax.swing.tree.TreeModel model,
                               java.lang.Object a,
                               java.lang.Object b)

isParentOf

public static boolean isParentOf(DAGModel model,
                                 java.lang.Object a,
                                 java.lang.Object b)

getPathsToNode

public static javax.swing.tree.TreePath[] getPathsToNode(DAGNode node)

getPathsToNode

public static javax.swing.tree.TreePath[] getPathsToNode(DAGModel model,
                                                         java.lang.Object node)

getPathsToNodes

public static javax.swing.tree.TreePath[] getPathsToNodes(DAGModel model,
                                                          java.util.Vector nodes)

getPathsToNodes

public static javax.swing.tree.TreePath[] getPathsToNodes(java.util.Vector nodes)

getPathsToNodesAsVector

public static java.util.Vector getPathsToNodesAsVector(java.util.Vector nodes)

getPathsToNodesAsVector

public static java.util.Vector getPathsToNodesAsVector(DAGModel model,
                                                       java.util.Vector nodes)

getPathsToNodeAsVector

public static java.util.Vector getPathsToNodeAsVector(DAGNode node)

getPathsToNodeAsVector

public static java.util.Vector getPathsToNodeAsVector(DAGModel model,
                                                      java.lang.Object node)

getMinimalDAG

public static DAGNode getMinimalDAG(DAGNode node)

getMinimalDAG

public static DAGModel getMinimalDAG(DAGModel model,
                                     java.lang.Object node)

minimalDAGHelper

public static DAGModel minimalDAGHelper(org.bdgp.cv.datamodel.MinimalDAGModel out,
                                        DAGModel model,
                                        java.lang.Object node)

getRoot

public static javax.swing.tree.TreeNode getRoot(javax.swing.tree.TreeNode node)