org.eclipse.draw2d
Class AbstractRouter
java.lang.Object
|
+--org.eclipse.draw2d.AbstractRouter
- All Implemented Interfaces:
- ConnectionRouter
- Direct Known Subclasses:
- AutomaticRouter, BendpointConnectionRouter, ConnectionRouter.NullConnectionRouter, ManhattanConnectionRouter
- public abstract class AbstractRouter
- extends Object
- implements ConnectionRouter
Generic support for ConnectionRouters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRouter
public AbstractRouter()
getConstraint
public Object getConstraint(Connection connection)
- Returns the constraint for the given Connection.
- Specified by:
getConstraint in interface ConnectionRouter
- Since:
- 2.0
getEndPoint
protected Point getEndPoint(Connection conn)
- Returns a Point representing the end of the given
Connection.
- Since:
- 2.0
getStartPoint
protected Point getStartPoint(Connection conn)
- Returns a Point representing the start of the given
Connection.
- Since:
- 2.0
invalidate
public void invalidate(Connection connection)
- Causes the router to discard any cached information
about the given Connection.
- Specified by:
invalidate in interface ConnectionRouter
- Since:
- 2.0
remove
public void remove(Connection connection)
- Removes the given Connection from this routers list
of Connections it is responsible for.
- Specified by:
remove in interface ConnectionRouter
- Since:
- 2.0
setConstraint
public void setConstraint(Connection connection,
Object constraint)
- Sets the constraint for the given Connection.
- Specified by:
setConstraint in interface ConnectionRouter
- Since:
- 2.0