edu.iastate.metnet.graphmodel
Class CategoryLayoutAlgorithm
java.lang.Object
org.jgraph.layout.JGraphLayoutAlgorithm
edu.iastate.metnet.graphmodel.CategoryLayoutAlgorithm
public class CategoryLayoutAlgorithm
- extends org.jgraph.layout.JGraphLayoutAlgorithm
|
Field Summary |
protected org.apache.commons.collections.map.MultiKeyMap |
edgeViewMap
store the edge view by using the (source id, target id) as the key |
(package private) static org.apache.log4j.Logger |
logger
log4j facility |
protected java.util.Map |
nodeViewMap
store the id and cellview, id maybe the blockid for normal node or guid for multi-node |
| Fields inherited from class org.jgraph.layout.JGraphLayoutAlgorithm |
LAYOUT_ATTRIBUTES |
|
Method Summary |
void |
run(org.jgraph.JGraph graph,
java.lang.Object[] cells)
run layout based on the underlying model type |
void |
run(org.jgraph.JGraph jgraph,
java.lang.Object[] dynamic_cells,
java.lang.Object[] static_cells)
layout without any static cells |
| Methods inherited from class org.jgraph.layout.JGraphLayoutAlgorithm |
applyLayout, applyLayout, createDialog, createDialog, createSettings, getHint, getMaximumProgress, getProgress, isAllowedToRun, populateDialog, setAllowedToRun, setMaximumProgress, setProgress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- log4j facility
nodeViewMap
protected java.util.Map nodeViewMap
- store the id and cellview, id maybe the blockid for normal node or guid for multi-node
edgeViewMap
protected org.apache.commons.collections.map.MultiKeyMap edgeViewMap
- store the edge view by using the (source id, target id) as the key
CategoryLayoutAlgorithm
public CategoryLayoutAlgorithm()
run
public void run(org.jgraph.JGraph jgraph,
java.lang.Object[] dynamic_cells,
java.lang.Object[] static_cells)
- layout without any static cells
- Specified by:
run in class org.jgraph.layout.JGraphLayoutAlgorithm
run
public void run(org.jgraph.JGraph graph,
java.lang.Object[] cells)
- run layout based on the underlying model type
- Overrides:
run in class org.jgraph.layout.JGraphLayoutAlgorithm