Class RoutingListener.Stub

java.lang.Object
org.eclipse.draw2d.RoutingListener.Stub
All Implemented Interfaces:
RoutingListener
Enclosing interface:
RoutingListener

public static class RoutingListener.Stub extends Object implements RoutingListener
A stub implementation which implements all required methods.
Since:
3.2
  • Constructor Details

    • Stub

      public Stub()
  • Method Details

    • invalidate

      public void invalidate(Connection connection)
      Description copied from interface: RoutingListener
      Called when the connection has been invalidated.
      Specified by:
      invalidate in interface RoutingListener
      Parameters:
      connection - the connection
    • postRoute

      public void postRoute(Connection connection)
      Description copied from interface: RoutingListener
      Called after normal routing has completed.
      Specified by:
      postRoute in interface RoutingListener
      Parameters:
      connection - the routed connection
    • remove

      public void remove(Connection connection)
      Description copied from interface: RoutingListener
      Called when a connection has been removed from its router.
      Specified by:
      remove in interface RoutingListener
      Parameters:
      connection - the connection
    • route

      public boolean route(Connection connection)
      Description copied from interface: RoutingListener
      Called prior to routing occurring. A listener may intercept routing by returning true. If intercepted, the connection's ConnectionRouter will not perform routing.
      Specified by:
      route in interface RoutingListener
      Parameters:
      connection - the connection being routed
      Returns:
      true if routing has been performed by the listener
    • setConstraint

      public void setConstraint(Connection connection, Object constraint)
      Description copied from interface: RoutingListener
      Called when the connection's routing constraint has been set or initialized.
      Specified by:
      setConstraint in interface RoutingListener
      Parameters:
      connection - the connection
      constraint - the new constraint