|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.analysis.mxAnalysisGraph
public class mxAnalysisGraph
Implements a collection of utility methods abstracting the graph structure taking into account graph properties such as visible/non-visible traversal
Field Summary | |
---|---|
protected mxGraphGenerator |
generator
|
protected mxGraph |
graph
|
protected Map<String,Object> |
properties
|
Constructor Summary | |
---|---|
mxAnalysisGraph()
|
Method Summary | |
---|---|
Object[] |
getChildCells(Object parent,
boolean vertices,
boolean edges)
|
Object[] |
getChildEdges(Object parent)
|
Object[] |
getChildVertices(Object parent)
|
Object[] |
getEdges(Object cell,
Object parent,
boolean includeLoops,
boolean recurse)
Returns the incoming and/or outgoing edges for the given cell. |
Object[] |
getEdges(Object cell,
Object parent,
boolean incoming,
boolean outgoing,
boolean includeLoops,
boolean recurse)
Returns the incoming and/or outgoing edges for the given cell. |
mxGraphGenerator |
getGenerator()
|
mxGraph |
getGraph()
|
Object[] |
getOpposites(Object[] edges,
Object terminal)
Returns all distinct opposite cells for the specified terminal on the given edges. |
Object[] |
getOpposites(Object[] edges,
Object terminal,
boolean sources,
boolean targets)
Returns all distinct opposite cells for the specified terminal on the given edges. |
Map<String,Object> |
getProperties()
|
Object |
getTerminal(Object edge,
boolean isSource)
|
void |
setGenerator(mxGraphGenerator generator)
|
void |
setGraph(mxGraph graph)
|
void |
setProperties(Map<String,Object> properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,Object> properties
protected mxGraphGenerator generator
protected mxGraph graph
Constructor Detail |
---|
public mxAnalysisGraph()
Method Detail |
---|
public Object[] getEdges(Object cell, Object parent, boolean incoming, boolean outgoing, boolean includeLoops, boolean recurse)
cell
- Cell whose edges should be returned.parent
- Optional parent. If specified the opposite end of any edge
must be a child of that parent in order for the edge to be returned. The
recurse parameter specifies whether or not it must be the direct child
or the parent just be an ancestral parent.incoming
- Specifies if incoming edges should be included in the
result.outgoing
- Specifies if outgoing edges should be included in the
result.includeLoops
- Specifies if loops should be included in the result.recurse
- Specifies if the parent specified only need be an ancestral
parent, true
, or the direct parent, false
public Object[] getEdges(Object cell, Object parent, boolean includeLoops, boolean recurse)
cell
- Cell whose edges should be returned.parent
- Optional parent. If specified the opposite end of any edge
must be a child of that parent in order for the edge to be returned. The
recurse parameter specifies whether or not it must be the direct child
or the parent just be an ancestral parent.includeLoops
- Specifies if loops should be included in the result.recurse
- Specifies if the parent specified only need be an ancestral
parent, true
, or the direct parent, false
public Object[] getChildVertices(Object parent)
parent
-
public Object[] getChildEdges(Object parent)
parent
-
public Object getTerminal(Object edge, boolean isSource)
edge
- isSource
-
public Object[] getChildCells(Object parent, boolean vertices, boolean edges)
public Object[] getOpposites(Object[] edges, Object terminal, boolean sources, boolean targets)
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.
public Object[] getOpposites(Object[] edges, Object terminal)
edges
- Edges whose opposite terminals should be returned.terminal
- Terminal that specifies the end whose opposite should be
returned.
public Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
public mxGraph getGraph()
public void setGraph(mxGraph graph)
public mxGraphGenerator getGenerator()
public void setGenerator(mxGraphGenerator generator)
|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |