edu.iastate.metnet.graphmodel
Class InputLayoutAlgorithm

java.lang.Object
  extended by org.jgraph.layout.JGraphLayoutAlgorithm
      extended by edu.iastate.metnet.graphmodel.InputLayoutAlgorithm

public class InputLayoutAlgorithm
extends org.jgraph.layout.JGraphLayoutAlgorithm

input graph layout

Author:
Jie Li

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
 
Constructor Summary
InputLayoutAlgorithm()
           
 
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
 

Field Detail

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

Constructor Detail

InputLayoutAlgorithm

public InputLayoutAlgorithm()
Method Detail

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