public class StraightRouter extends java.lang.Object implements IConnectionRouter
StraightRouter
is an IConnectionRouter
that leaves the
Connection
's control points untouched and only provides reference
points for the Connection
's anchors.Constructor and Description |
---|
StraightRouter() |
Modifier and Type | Method and Description |
---|---|
boolean |
isImplicitAnchor(IAnchor anchor)
Returns
true if the given IAnchor was added by this
IConnectionRouter during IConnectionRouter.route(Connection) . |
void |
route(Connection connection)
Adjusts the
connection's points (if necessary), which
includes computing reference points for DynamicAnchor s (if any). |
public boolean isImplicitAnchor(IAnchor anchor)
IConnectionRouter
true
if the given IAnchor
was added by this
IConnectionRouter
during IConnectionRouter.route(Connection)
. Otherwise
returns false
.isImplicitAnchor
in interface IConnectionRouter
anchor
- The IAnchor
that is tested for implicitness.true
if the given IAnchor
is implicit,
otherwise false
.public void route(Connection connection)
IConnectionRouter
connection's
points (if necessary), which
includes computing reference points for DynamicAnchor
s (if any).route
in interface IConnectionRouter
connection
- The Connection
to route.Copyright (c) 2014 itemis AG and others. All rights reserved.