org.eclipse.draw2d
Class BendpointConnectionRouter
java.lang.Object
|
+--org.eclipse.draw2d.AbstractRouter
|
+--org.eclipse.draw2d.BendpointConnectionRouter
- All Implemented Interfaces:
- ConnectionRouter
- public class BendpointConnectionRouter
- extends AbstractRouter
A Router that routes a Connection
that has manual
Bendpoints
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BendpointConnectionRouter
public BendpointConnectionRouter()
getConstraint
public Object getConstraint(Connection connection)
- Gets the constraint for the given
Connection
.
- Specified by:
getConstraint
in interface ConnectionRouter
- Overrides:
getConstraint
in class AbstractRouter
- Parameters:
connection
- The connection whose constraint we are retrieving
- Returns:
- The constraint
remove
public void remove(Connection connection)
- Removes the given connection from the map of constraints.
- Specified by:
remove
in interface ConnectionRouter
- Overrides:
remove
in class AbstractRouter
- Parameters:
connection
- The connection to remove
route
public void route(Connection conn)
- Routes the
Connection
. Expects the constraint to be a List
of Points
representing the bendpoints.
- Parameters:
conn
- The connection to route
setConstraint
public void setConstraint(Connection connection,
Object constraint)
- Sets the constraint for the given
Connection
.
- Specified by:
setConstraint
in interface ConnectionRouter
- Overrides:
setConstraint
in class AbstractRouter
- Parameters:
connection
- The connection whose constraint we are settingconstraint
- The constraint
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.