Package org.eclipse.draw2d
Interface RoutingListener
- All Known Implementing Classes:
RoutingAnimator,RoutingListener.Stub
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).
- Since:
- 3.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA stub implementation which implements all required methods. -
Method Summary
Modifier and TypeMethodDescriptionvoidinvalidate(Connection connection) Called when the connection has been invalidated.voidpostRoute(Connection connection) Called after normal routing has completed.voidremove(Connection connection) Called when a connection has been removed from its router.booleanroute(Connection connection) Called prior to routing occurring.voidsetConstraint(Connection connection, Object constraint) Called when the connection's routing constraint has been set or initialized.
-
Method Details
-
invalidate
Called when the connection has been invalidated.- Parameters:
connection- the connection- Since:
- 3.2
-
postRoute
Called after normal routing has completed.- Parameters:
connection- the routed connection- Since:
- 3.2
-
remove
Called when a connection has been removed from its router.- Parameters:
connection- the connection- Since:
- 3.2
-
route
Called prior to routing occurring. A listener may intercept routing by returningtrue. If intercepted, the connection'sConnectionRouterwill not perform routing.- Parameters:
connection- the connection being routed- Returns:
trueif routing has been performed by the listener- Since:
- 3.2
-
setConstraint
Called when the connection's routing constraint has been set or initialized.- Parameters:
connection- the connectionconstraint- the new constraint- Since:
- 3.2
-