|
Draw2d 3.9.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoutingListener
Classes which implement this interface provide callback hooks for various routing related events.
Instances can be hooked to a PolylineConnection
by calling
PolylineConnection.addRoutingListener(RoutingListener)
.
Nested Class Summary | |
---|---|
static class |
RoutingListener.Stub
A stub implementation which implements all required methods. |
Method Summary | |
---|---|
void |
invalidate(Connection connection)
Called when the connection has been invalidated. |
void |
postRoute(Connection connection)
Called after normal routing has completed. |
void |
remove(Connection connection)
Called when a connection has been removed from its router. |
boolean |
route(Connection connection)
Called prior to routing occurring. |
void |
setConstraint(Connection connection,
java.lang.Object constraint)
Called when the connection's routing constraint has been set or initialized. |
Method Detail |
---|
void invalidate(Connection connection)
connection
- the connectionvoid postRoute(Connection connection)
connection
- the routed connectionvoid remove(Connection connection)
connection
- the connectionboolean route(Connection connection)
true
. If intercepted, the connection's
ConnectionRouter
will not perform routing.
connection
- the connection being routed
true
if routing has been performed by the listenervoid setConstraint(Connection connection, java.lang.Object constraint)
connection
- the connectionconstraint
- the new constraint
|
Draw2d 3.9.100.201405261516 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |