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

Quick Search    Search Deep

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

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

public final class OrthogonalRouter
extends java.lang.Object
implements GraphRouter

Orthogonal edge router, connects two points using orthogonal bends only.

(c) 2000, 2001, IIUF, DIUF

Version:
$Name: $ $Revision: 1.1 $

Field Summary
private  boolean changed
           
private  int[] cummlen
           
private static int DINC
           
private  int[] ebrac
           
private  int endx
           
private  int endy
           
private  boolean[] exclude
           
private  int[][] getXCmpsCa
           
private  int[] getXCmpsCnt
           
private  int[][] getYCmpsCa
           
private  int[] getYCmpsCnt
           
private  int hcnt
           
private  int hdir
           
private  int height
           
private static int MAXLOOP
           
private  int[] nbrac
           
private  int nnodes
           
private  int npoints
           
private  int oldheight
           
private  int oldwidth
           
private static double PI2
           
private  boolean reinit
           
private  int[] rtca
           
private  int[] sbrac
           
private  int startx
           
private  int starty
           
private  java.awt.Rectangle tmpRect
           
private  int vcnt
           
private  int vdir
           
private  int[] wbrac
           
private  int width
           
private  int[] x1ca
           
private  int[] x2ca
           
private  int[] xpoints
           
private  int[] y1ca
           
private  int[] y2ca
           
private  int[] ypoints
           
 
Constructor Summary
OrthogonalRouter()
           
 
Method Summary
private  void bt(int lastx, int lasty, int x, int y)
           
private  void hconnect(int x, int y)
           
private  void hline(int x, int y)
           
 void init()
           
private  void lr(int lastx, int lasty, int x, int y)
           
private  void rl(int lastx, int lasty, int x, int y)
           
 void setupEdges(GraphPanel panel, GraphEdge[] edges, java.awt.Component[] nodes)
           
private  void stateUpdate(java.awt.Component[] nodes, GraphEdge[] edges)
           
private  void tb(int lastx, int lasty, int x, int y)
           
private  void vconnect(int x, int y)
           
private  void vline(int x, int y)
           
 
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

MAXLOOP

private static final int MAXLOOP
See Also:
Constant Field Values

DINC

private static final int DINC
See Also:
Constant Field Values

vdir

private int vdir

hdir

private int hdir

hcnt

private int hcnt

vcnt

private int vcnt

endx

private int endx

endy

private int endy

startx

private int startx

starty

private int starty

x1ca

private int[] x1ca

y1ca

private int[] y1ca

x2ca

private int[] x2ca

y2ca

private int[] y2ca

rtca

private int[] rtca

exclude

private boolean[] exclude

nbrac

private int[] nbrac

ebrac

private int[] ebrac

sbrac

private int[] sbrac

wbrac

private int[] wbrac

nnodes

private int nnodes

changed

private boolean changed

reinit

private boolean reinit

getYCmpsCa

private int[][] getYCmpsCa

getYCmpsCnt

private int[] getYCmpsCnt

getXCmpsCa

private int[][] getXCmpsCa

getXCmpsCnt

private int[] getXCmpsCnt

width

private int width

oldwidth

private int oldwidth

height

private int height

oldheight

private int oldheight

xpoints

private int[] xpoints

ypoints

private int[] ypoints

cummlen

private int[] cummlen

npoints

private int npoints

tmpRect

private java.awt.Rectangle tmpRect
Constructor Detail

OrthogonalRouter

public OrthogonalRouter()
Method Detail

hline

private void hline(int x,
                   int y)

lr

private void lr(int lastx,
                int lasty,
                int x,
                int y)

rl

private void rl(int lastx,
                int lasty,
                int x,
                int y)

vline

private void vline(int x,
                   int y)

tb

private void tb(int lastx,
                int lasty,
                int x,
                int y)

bt

private void bt(int lastx,
                int lasty,
                int x,
                int y)

hconnect

private void hconnect(int x,
                      int y)

vconnect

private void vconnect(int x,
                      int y)

init

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

stateUpdate

private void stateUpdate(java.awt.Component[] nodes,
                         GraphEdge[] edges)

setupEdges

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