public final class RouterFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Router |
createDirectRouter()
Creates a direct router.
|
static Router |
createFreeRouter()
Creates a free router.
|
static Router |
createOrthogonalSearchRouter(CollisionsCollector collector)
Creates an orthogonal search router.
|
static Router |
createOrthogonalSearchRouter(ConnectionWidgetCollisionsCollector collector)
Creates an orthogonal search router.
|
static Router |
createOrthogonalSearchRouter(LayerWidget... layers)
Creates an orthogonal search router.
|
public static Router createDirectRouter()
public static Router createFreeRouter()
public static Router createOrthogonalSearchRouter(LayerWidget... layers)
layers
- the layers with widgets taken as collisions regionspublic static Router createOrthogonalSearchRouter(CollisionsCollector collector)
collector
- the collision collectorpublic static Router createOrthogonalSearchRouter(ConnectionWidgetCollisionsCollector collector)
collector
- the collision collector