public interface ConnectionRouter
Connection
, possibly using a constraint.Modifier and Type | Interface and Description |
---|---|
static class |
ConnectionRouter.NullConnectionRouter
Routes Connections directly from the source anchor to the target anchor
with no bendpoints in between.
|
Modifier and Type | Field and Description |
---|---|
static ConnectionRouter |
NULL
The default router for Connections.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConstraint(Connection connection)
Returns the constraint for the Connection.
|
void |
invalidate(Connection connection)
Invalidates the given Connection.
|
void |
remove(Connection connection)
Removes the Connection from this router.
|
void |
route(Connection connection)
Routes the Connection.
|
void |
setConstraint(Connection connection,
java.lang.Object constraint)
Maps the given constraint to the given Connection.
|
static final ConnectionRouter NULL
java.lang.Object getConstraint(Connection connection)
connection
- The connectionvoid invalidate(Connection connection)
connection
- The connection to be invalidatedvoid route(Connection connection)
connection
- The Connection to routevoid remove(Connection connection)
connection
- The Connection to removevoid setConstraint(Connection connection, java.lang.Object constraint)
connection
- The Connectionconstraint
- The constraintCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.