Package org.eclipse.draw2d
Class BendpointConnectionRouter
java.lang.Object
org.eclipse.draw2d.AbstractRouter
org.eclipse.draw2d.BendpointConnectionRouter
- All Implemented Interfaces:
ConnectionRouter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.draw2d.ConnectionRouter
ConnectionRouter.NullConnectionRouter -
Field Summary
Fields inherited from interface org.eclipse.draw2d.ConnectionRouter
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConstraint(Connection connection) Gets the constraint for the givenConnection.voidremove(Connection connection) Removes the given connection from the map of constraints.voidroute(Connection conn) Routes theConnection.voidsetConstraint(Connection connection, Object constraint) Sets the constraint for the givenConnection.Methods inherited from class org.eclipse.draw2d.AbstractRouter
getEndPoint, getStartPoint, invalidate
-
Constructor Details
-
BendpointConnectionRouter
public BendpointConnectionRouter()
-
-
Method Details
-
getConstraint
Gets the constraint for the givenConnection.- Specified by:
getConstraintin interfaceConnectionRouter- Overrides:
getConstraintin classAbstractRouter- Parameters:
connection- The connection whose constraint we are retrieving- Returns:
- The constraint
- Since:
- 3.15
-
remove
Removes the given connection from the map of constraints.- Specified by:
removein interfaceConnectionRouter- Overrides:
removein classAbstractRouter- Parameters:
connection- The connection to remove
-
route
Routes theConnection. Expects the constraint to be a List ofBendpoints.- Parameters:
conn- The connection to route
-
setConstraint
Sets the constraint for the givenConnection.- Specified by:
setConstraintin interfaceConnectionRouter- Overrides:
setConstraintin classAbstractRouter- Parameters:
connection- The connection whose constraint we are settingconstraint- The constraint, which as to be a List<Bendpoint>
-