Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

iiuf.swing.graph
Class StraightLineRouter  view StraightLineRouter download StraightLineRouter.java

java.lang.Object
  extended byiiuf.swing.graph.StraightLineRouter
All Implemented Interfaces:
GraphRouter

public class StraightLineRouter
extends java.lang.Object
implements GraphRouter

Straight line edge router, connects directly two points doesn't check any crossing etc.. (c) 2000, 2001, IIUF, DIUF

Version:
$Name: $ $Revision: 1.1 $

Field Summary
private static double PI2
           
 
Constructor Summary
StraightLineRouter()
           
 
Method Summary
 void init()
           
 void setupEdges(GraphPanel panel, GraphEdge[] edges, java.awt.Component[] nodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI2

private static final double PI2
See Also:
Constant Field Values
Constructor Detail

StraightLineRouter

public StraightLineRouter()
Method Detail

init

public void init()
Specified by:
init in interface GraphRouter

setupEdges

public void setupEdges(GraphPanel panel,
                       GraphEdge[] edges,
                       java.awt.Component[] nodes)
Specified by:
setupEdges in interface GraphRouter