info.aduna.linkmap.layout
Class LinkGraphLayoutManager2

java.lang.Object
  extended by info.aduna.linkmap.layout.GraphLayoutManager
      extended by info.aduna.linkmap.layout.SubgraphRelocationManager
          extended by info.aduna.linkmap.layout.LinkGraphLayoutManager2
All Implemented Interfaces:
Runnable

public class LinkGraphLayoutManager2
extends SubgraphRelocationManager

LinkGraphLayoutManager2 gives a layout to a LinkGraph based on the spring embedder and the subgraph relocation algorithms. It uses a LinkSubgraphLayoutManager2 for calculating the layout of the connected subgraphs of the total graph.

LinkGraphLayoutManager2 differs from LinkGraphLayoutManager in that it uses a different GraphLayoutManager for calculating the layout of a subgraph.

LinkGraphLayoutManager supports notification about the progress of the algorithms through the use of the LinkLayoutProgressListener interface, through which the progress is notified in percentages.


Field Summary
 
Fields inherited from class info.aduna.linkmap.layout.SubgraphRelocationManager
DEFAULT_BASELINE_INTERVAL, DEFAULT_SUBGRAPH_PADDING
 
Constructor Summary
LinkGraphLayoutManager2()
           
 
Method Summary
 void doLayout()
          Calculates a layout for the complete Graph registered in this SubgraphRelocationManager.
 void setGraph(Graph graph)
          Set the Graph whose layout is calculated by this GraphLayoutManager.
 void stop()
          Instructs this layout manager to stop iterating.
 
Methods inherited from class info.aduna.linkmap.layout.SubgraphRelocationManager
addSubgraphRelocationListener, createLayoutConverter, getBaselineInterval, getGraphRenderer, getSubgraphLayoutManager, getSubgraphPadding, initialize, removeSubgraphRelocationListener, setBaselineInterval, setGraphRenderer, setSubgraphLayoutManager, setSubgraphPadding
 
Methods inherited from class info.aduna.linkmap.layout.GraphLayoutManager
getGraph, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkGraphLayoutManager2

public LinkGraphLayoutManager2()
Method Detail

stop

public void stop()
Instructs this layout manager to stop iterating. This call is propagated to the subgraph GraphLayoutManager.

Overrides:
stop in class SubgraphRelocationManager

setGraph

public void setGraph(Graph graph)
Description copied from class: GraphLayoutManager
Set the Graph whose layout is calculated by this GraphLayoutManager. This invokes 'initialize' with the specified Graph.

Overrides:
setGraph in class GraphLayoutManager

doLayout

public void doLayout()
Description copied from class: SubgraphRelocationManager
Calculates a layout for the complete Graph registered in this SubgraphRelocationManager.

Overrides:
doLayout in class SubgraphRelocationManager


Copyright © 1997-2008 Aduna. All Rights Reserved.