java.lang.Object
iiuf.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 $
|
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 |
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
OrthogonalRouter
public OrthogonalRouter()
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