de.frag.umlplugin.codenavigator.graph
Class GraphUtils

java.lang.Object
  extended by de.frag.umlplugin.codenavigator.graph.GraphUtils

public class GraphUtils
extends java.lang.Object

Graph related utilities.


Method Summary
static com.intellij.openapi.graph.base.Node findNode(com.intellij.openapi.graph.base.Graph graph, com.intellij.psi.PsiClass psiClass, DependencyType dependencyType)
          Finds node with matching class and dependency type in given graph.
static com.intellij.openapi.graph.base.Node findSubjectNode(com.intellij.openapi.graph.base.Graph graph)
          Finds subject node in given graph.
static GraphBuilder.NodeInfo getNodeInfo(com.intellij.openapi.graph.base.Node node)
          Gets node info for given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findNode

@Nullable
public static com.intellij.openapi.graph.base.Node findNode(@NotNull
                                                                     com.intellij.openapi.graph.base.Graph graph,
                                                                     @NotNull
                                                                     com.intellij.psi.PsiClass psiClass,
                                                                     @NotNull
                                                                     DependencyType dependencyType)
Finds node with matching class and dependency type in given graph.

Parameters:
graph - find node in this graph
psiClass - find node with this class as node info
dependencyType - find node with this dependency type as node info
Returns:
node in given graph with matching node info (or null, if node could not be found)

findSubjectNode

@Nullable
public static com.intellij.openapi.graph.base.Node findSubjectNode(@NotNull
                                                                            com.intellij.openapi.graph.base.Graph graph)
Finds subject node in given graph.

Parameters:
graph - find node in this graph
Returns:
node in given graph with (or null, if node could not be found)

getNodeInfo

@Nullable
public static GraphBuilder.NodeInfo getNodeInfo(@NotNull
                                                         com.intellij.openapi.graph.base.Node node)
Gets node info for given node.

Parameters:
node - node to get info for
Returns:
found node info or null, if no node info could be found