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 DynamicAnchors (if any). |
public boolean isImplicitAnchor(IAnchor anchor)
IConnectionRoutertrue if the given IAnchor was added by this
IConnectionRouter during IConnectionRouter.route(Connection). Otherwise
returns false.isImplicitAnchor in interface IConnectionRouteranchor - The IAnchor that is tested for implicitness.true if the given IAnchor is implicit,
otherwise false.public void route(Connection connection)
IConnectionRouterconnection's points (if necessary), which
includes computing reference points for DynamicAnchors (if any).route in interface IConnectionRouterconnection - The Connection to route.Copyright (c) 2014 itemis AG and others. All rights reserved.