|
Eclipse Draw2d 3.3 |
||||||||||
| 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 | |
boolean |
containsConnection(Connection conn)
Returns true if the given connection is routed by this router, false otherwise |
java.lang.Object |
getConstraint(Connection connection)
Gets the constraint for the given Connection. |
IFigure |
getContainer()
|
java.util.List |
getPathsAfterRouting()
|
int |
getSpacing()
Returns the default spacing maintained on either side of a connection. |
boolean |
hasMoreConnections()
|
void |
invalidate(Connection connection)
Causes the router to discard any cached information about the given Connection. |
boolean |
isDirty()
Returns the value indicating if the router is dirty, i.e. if there are any outstanding connections that need to be routed |
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,
java.lang.Object constraint)
Sets the constraint for the given Connection. |
void |
setIgnoreInvalidate(boolean b)
Sets the value indicating if connection invalidation should be ignored. |
void |
setSpacing(int spacing)
Sets the default space that should be maintained on either side of a connection. |
boolean |
shouldIgnoreInvalidate()
Returns the value indicating if connection invalidation should be ignored. |
| 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 java.lang.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 java.util.List getPathsAfterRouting()
public void setConstraint(Connection connection,
java.lang.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 spacingpublic boolean hasMoreConnections()
public IFigure getContainer()
public void setIgnoreInvalidate(boolean b)
b - true if invalidation should be skipped, false otherwisepublic boolean shouldIgnoreInvalidate()
public boolean isDirty()
public boolean containsConnection(Connection conn)
conn - Connection whose router is questioned
|
Eclipse Draw2d 3.3 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||