Eclipse Draw2d
3.1

org.eclipse.draw2d.internal.graph
Class MinCross

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

public class MinCross
extends GraphVisitor

Sweeps up and down the ranks rearranging them so as to reduce edge crossings.

Since:
2.1.2

Constructor Summary
MinCross()
           
MinCross(org.eclipse.draw2d.internal.graph.RankSorter sorter)
           
 
Method Summary
 void setRankSorter(org.eclipse.draw2d.internal.graph.RankSorter sorter)
           
 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

MinCross

public MinCross()

MinCross

public MinCross(org.eclipse.draw2d.internal.graph.RankSorter sorter)
Since:
3.1
Method Detail

setRankSorter

public void setRankSorter(org.eclipse.draw2d.internal.graph.RankSorter sorter)

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.