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
.void
remove
(Connection connection) Removes the given connection from the map of constraints.void
route
(Connection conn) Routes theConnection
.void
setConstraint
(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:
getConstraint
in interfaceConnectionRouter
- Overrides:
getConstraint
in 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:
remove
in interfaceConnectionRouter
- Overrides:
remove
in 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:
setConstraint
in interfaceConnectionRouter
- Overrides:
setConstraint
in classAbstractRouter
- Parameters:
connection
- The connection whose constraint we are settingconstraint
- The constraint, which as to be a List
-