Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.ConnectionRouter

    Object
       |
       +--draw2d.ConnectionRouter

Direct Known Subclasses:
  draw2d.BezierConnectionRouter, draw2d.NullConnectionRouter, draw2d.ManhattanConnectionRouter

class draw2d.ConnectionRouter

Routes a draw2d.Connection, possibly using a constraint.
Version: 0.9.14
Author: Andreas Herz
Defined in ConnectionRouter.js

Field Summary
`Object` | `type`

Constructor Summary
`draw2d.ConnectionRouter ()`

Method Summary
`Object` | `getDirection( r, p)` Returns the direction the point p is in relation to the given rectangle.
`Object` | `getEndDirection( conn)`
`Object` | `getStartDirection( conn)`
`void` | `route( connection)` Routes the Connection.

Field Detail

### type

    Object type

Constructor Detail

### draw2d.ConnectionRouter

    draw2d.ConnectionRouter()

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getDirection

    Object getDirection( r, p)

Returns the direction the point p is in relation to the given rectangle. Possible values are LEFT (-1,0), RIGHT (1,0), UP (0,-1) and DOWN (0,1).

Parameters:

`r` - the rectangle

`p` - the point

Returns:

the direction from r to p

### getEndDirection

    Object getEndDirection( conn)

### getStartDirection

    Object getStartDirection( conn)

### route

    void route( connection)

Routes the Connection.

Parameters:

`connection` - The Connection to route

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008