Eclipse Draw2d
3.1

org.eclipse.draw2d.internal.graph
Class LocalOptimizer

java.lang.Object
  extended byorg.eclipse.draw2d.internal.graph.GraphVisitor
      extended byorg.eclipse.draw2d.internal.graph.LocalOptimizer

public class LocalOptimizer
extends GraphVisitor

This graph visitor examines all adjacent pairs of nodes and determines if swapping the two nodes provides improved graph aesthetics.

Since:
2.1.2

Constructor Summary
LocalOptimizer()
           
 
Method Summary
 void visit(DirectedGraph g)
          Act on the given directed graph.
 
Methods inherited from class org.eclipse.draw2d.internal.graph.GraphVisitor
revisit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalOptimizer

public LocalOptimizer()
Method Detail

visit

public void visit(DirectedGraph g)
Description copied from class: GraphVisitor
Act on the given directed graph.

Specified by:
visit in class GraphVisitor
Parameters:
g - the graph
See Also:
GraphVisitor.visit(org.eclipse.draw2d.graph.DirectedGraph)

Eclipse Draw2d
3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.