public class mxAnalysisUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,Object> |
emptyProps |
Constructor and Description |
---|
mxAnalysisUtils() |
Modifier and Type | Method and Description |
---|---|
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) |
public static Object[] getEdges(mxGraph graph, Object cell, Object parent, boolean incoming, boolean outgoing, boolean includeLoops, boolean recurse, Map<String,Object> properties)
graph
- cell
- parent
- incoming
- outgoing
- includeLoops
- recurse
- properties
- public static Object[] getChildVertices(mxGraph graph, Object parent, Map<String,Object> properties)
graph
- parent
- properties
- public static Object getTerminal(mxGraph graph, Object edge, boolean isSource, Map<String,Object> properties)
graph
- edge
- isSource
- properties
- public static Object[] getOpposites(mxGraph graph, Object[] edges, Object terminal, boolean sources, boolean targets, Map<String,Object> properties)
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.Copyright (c) 2010 Gaudenz Alder. All rights reserved.