|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.AbstractRouter
org.eclipse.draw2d.ShortestPathConnectionRouter
Routes multiple connections around the children of a given container figure.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.ConnectionRouter |
ConnectionRouter.NullConnectionRouter |
Field Summary |
Fields inherited from interface org.eclipse.draw2d.ConnectionRouter |
NULL |
Constructor Summary | |
ShortestPathConnectionRouter(IFigure container)
Creates a new shortest path router with the given container. |
Method Summary | |
Object |
getConstraint(Connection connection)
Gets the constraint for the given Connection . |
void |
invalidate(Connection connection)
Causes the router to discard any cached information about the given Connection. |
void |
remove(Connection connection)
Removes the given Connection from this routers list of Connections it is responsible for. |
void |
route(Connection conn)
Routes the Connection. |
void |
setConstraint(Connection connection,
Object constraint)
Sets the constraint for the given Connection. |
Methods inherited from class org.eclipse.draw2d.AbstractRouter |
getEndPoint, getStartPoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShortestPathConnectionRouter(IFigure container)
container
- the containerMethod Detail |
public Object getConstraint(Connection connection)
Connection
. The constraint is the paths
list of bend points for this connection.
getConstraint
in interface ConnectionRouter
getConstraint
in class AbstractRouter
connection
- The connection whose constraint we are retrieving
public void invalidate(Connection connection)
AbstractRouter
invalidate
in interface ConnectionRouter
invalidate
in class AbstractRouter
connection
- The connection to invalidateConnectionRouter.invalidate(org.eclipse.draw2d.Connection)
public void remove(Connection connection)
AbstractRouter
remove
in interface ConnectionRouter
remove
in class AbstractRouter
connection
- The connection to removeConnectionRouter.remove(org.eclipse.draw2d.Connection)
public void route(Connection conn)
ConnectionRouter
conn
- The Connection to routeConnectionRouter.route(Connection)
public void setConstraint(Connection connection, Object constraint)
AbstractRouter
setConstraint
in interface ConnectionRouter
setConstraint
in class AbstractRouter
connection
- The connectionconstraint
- The constraintConnectionRouter.setConstraint(org.eclipse.draw2d.Connection, java.lang.Object)
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |