Package org.eclipse.draw2d
Interface ConnectionRouter
- All Known Implementing Classes:
- AbstractRouter,- AutomaticRouter,- BendpointConnectionRouter,- ConnectionRouter.NullConnectionRouter,- FanRouter,- ManhattanConnectionRouter,- ShortestPathConnectionRouter
public interface ConnectionRouter
Routes a 
Connection, possibly using a constraint.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classRoutes Connections directly from the source anchor to the target anchor with no bendpoints in between.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ConnectionRouterThe default router for Connections.
- 
Method SummaryModifier and TypeMethodDescriptiongetConstraint(Connection connection) Returns the constraint for the Connection.voidinvalidate(Connection connection) Invalidates the given Connection.voidremove(Connection connection) Removes the Connection from this router.voidroute(Connection connection) Routes the Connection.voidsetConstraint(Connection connection, Object constraint) Maps the given constraint to the given Connection.
- 
Field Details- 
NULLThe default router for Connections.
 
- 
- 
Method Details- 
getConstraintReturns the constraint for the Connection.- Parameters:
- connection- The connection
- Returns:
- The constraint
 
- 
invalidateInvalidates the given Connection.- Parameters:
- connection- The connection to be invalidated
 
- 
routeRoutes the Connection.- Parameters:
- connection- The Connection to route
 
- 
removeRemoves the Connection from this router.- Parameters:
- connection- The Connection to remove
 
- 
setConstraintMaps the given constraint to the given Connection.- Parameters:
- connection- The Connection
- constraint- The constraint
 
 
-