info.aduna.clustermap.layout
Class SubgraphLayoutManager

java.lang.Object
  extended by info.aduna.clustermap.layout.SubgraphLayoutManager

public class SubgraphLayoutManager
extends Object


Nested Class Summary
static class SubgraphLayoutManager.EdgeAttribute
           
static class SubgraphLayoutManager.VertexAttribute
           
 
Field Summary
static double DEFAULT_ARRANGE_ADAPTATION
           
static int DEFAULT_ARRANGE_MAX_ROUNDS
           
static double DEFAULT_ARRANGE_STOP_AVG_SQR_MOVEMENT
           
static int DEFAULT_EDGE_LENGTH
           
static double DEFAULT_INSERT_ADAPTATION
           
static int DEFAULT_INSERT_MAX_ITERATION
           
static double DEFAULT_INSERT_SHAKE
           
static double DEFAULT_OPTIMIZE_ADAPTATION
           
static int DEFAULT_OPTIMIZE_MAX_ROUNDS
           
static double DEFAULT_OPTIMIZE_STOP_AVG_SQR_MOVEMENT
           
 
Constructor Summary
SubgraphLayoutManager()
           
 
Method Summary
 void doLayout()
           
 ArrayList<ClassificationVertex> inheritClassificationPositions(Graph newGraph, Graph oldGraph)
          Copies the locations of a ClassificationVertex in the old Graph to a ClassificationVertex in the new Graph if they represent the same Classification.
 void installAttributes(Graph graph)
           
 void setGraph(Graph graph)
           
 void setGraphRenderer(GraphRenderer renderer)
           
 void setReusableVertices(ArrayList<ClassificationVertex> vertices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EDGE_LENGTH

public static final int DEFAULT_EDGE_LENGTH
See Also:
Constant Field Values

DEFAULT_INSERT_MAX_ITERATION

public static final int DEFAULT_INSERT_MAX_ITERATION
See Also:
Constant Field Values

DEFAULT_ARRANGE_MAX_ROUNDS

public static final int DEFAULT_ARRANGE_MAX_ROUNDS
See Also:
Constant Field Values

DEFAULT_OPTIMIZE_MAX_ROUNDS

public static final int DEFAULT_OPTIMIZE_MAX_ROUNDS
See Also:
Constant Field Values

DEFAULT_INSERT_SHAKE

public static final double DEFAULT_INSERT_SHAKE
See Also:
Constant Field Values

DEFAULT_INSERT_ADAPTATION

public static final double DEFAULT_INSERT_ADAPTATION
See Also:
Constant Field Values

DEFAULT_ARRANGE_ADAPTATION

public static final double DEFAULT_ARRANGE_ADAPTATION
See Also:
Constant Field Values

DEFAULT_OPTIMIZE_ADAPTATION

public static final double DEFAULT_OPTIMIZE_ADAPTATION
See Also:
Constant Field Values

DEFAULT_ARRANGE_STOP_AVG_SQR_MOVEMENT

public static final double DEFAULT_ARRANGE_STOP_AVG_SQR_MOVEMENT
See Also:
Constant Field Values

DEFAULT_OPTIMIZE_STOP_AVG_SQR_MOVEMENT

public static final double DEFAULT_OPTIMIZE_STOP_AVG_SQR_MOVEMENT
See Also:
Constant Field Values
Constructor Detail

SubgraphLayoutManager

public SubgraphLayoutManager()
Method Detail

setGraph

public void setGraph(Graph graph)

setGraphRenderer

public void setGraphRenderer(GraphRenderer renderer)

installAttributes

public void installAttributes(Graph graph)

doLayout

public void doLayout()

inheritClassificationPositions

public ArrayList<ClassificationVertex> inheritClassificationPositions(Graph newGraph,
                                                                      Graph oldGraph)
Copies the locations of a ClassificationVertex in the old Graph to a ClassificationVertex in the new Graph if they represent the same Classification. The returned List contains the ClassificationVertices of the new Graph whose positions were indeed initialized by this method.


setReusableVertices

public void setReusableVertices(ArrayList<ClassificationVertex> vertices)


Copyright © 1997-2008 Aduna. All Rights Reserved.