|
Eclipse Draw2d 3.2 |
||||||||||
| 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. |
int |
getSpacing()
Returns the default spacing maintained on either side of a 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. |
void |
setSpacing(int spacing)
Sets the default space that should be maintained on either side of a 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 container| Method Detail |
public Object getConstraint(Connection connection)
Connection. The constraint is the paths
list of bend points for this connection.
getConstraint in interface ConnectionRoutergetConstraint in class AbstractRouterconnection - The connection whose constraint we are retrieving
public int getSpacing()
public void invalidate(Connection connection)
AbstractRouter
invalidate in interface ConnectionRouterinvalidate in class AbstractRouterconnection - The connection to invalidateConnectionRouter.invalidate(Connection)public void remove(Connection connection)
AbstractRouter
remove in interface ConnectionRouterremove in class AbstractRouterconnection - The connection to removeConnectionRouter.remove(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 ConnectionRoutersetConstraint in class AbstractRouterconnection - The connectionconstraint - The constraintConnectionRouter.setConstraint(Connection, Object)public void setSpacing(int spacing)
spacing - the connection spacing
|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||