mxGraph 1.10.4.0


com.mxgraph.analysis
Class mxAnalysisUtils

java.lang.Object
  extended by com.mxgraph.analysis.mxAnalysisUtils

public class mxAnalysisUtils
extends Object

Implements a collection of utility methods abstracting the graph structure taking into account graph properties such as visible/non-visible traversal


Field Summary
static Map<String,Object> emptyProps
           
 
Constructor Summary
mxAnalysisUtils()
           
 
Method Summary
static Object[] getChildVertices(mxGraph graph, Object parent, Map<String,Object> properties)
           
static Object[] getEdges(mxGraph graph, Object cell, Object parent, boolean incoming, boolean outgoing, boolean includeLoops, boolean recurse, Map<String,Object> properties)
           
static Object[] getOpposites(mxGraph graph, Object[] edges, Object terminal, boolean sources, boolean targets, Map<String,Object> properties)
          Returns all distinct opposite cells for the specified terminal on the given edges.
static Object getTerminal(mxGraph graph, Object edge, boolean isSource, Map<String,Object> properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emptyProps

public static final Map<String,Object> emptyProps
Constructor Detail

mxAnalysisUtils

public mxAnalysisUtils()
Method Detail

getEdges

public static Object[] getEdges(mxGraph graph,
                                Object cell,
                                Object parent,
                                boolean incoming,
                                boolean outgoing,
                                boolean includeLoops,
                                boolean recurse,
                                Map<String,Object> properties)
Parameters:
graph -
cell -
parent -
incoming -
outgoing -
includeLoops -
recurse -
properties -
Returns:

getChildVertices

public static Object[] getChildVertices(mxGraph graph,
                                        Object parent,
                                        Map<String,Object> properties)
Parameters:
graph -
parent -
properties -
Returns:

getTerminal

public static Object getTerminal(mxGraph graph,
                                 Object edge,
                                 boolean isSource,
                                 Map<String,Object> properties)
Parameters:
graph -
edge -
isSource -
properties -
Returns:

getOpposites

public static Object[] getOpposites(mxGraph graph,
                                    Object[] edges,
                                    Object terminal,
                                    boolean sources,
                                    boolean targets,
                                    Map<String,Object> properties)
Returns all distinct opposite cells for the specified terminal on the given edges.

Parameters:
edges - Edges whose opposite terminals should be returned.
terminal - Terminal that specifies the end whose opposite should be returned.
sources - Specifies if source terminals should be included in the result.
targets - Specifies if target terminals should be included in the result.
Returns:
Returns the cells at the opposite ends of the given edges.

mxGraph 1.10.4.0


Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.