|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractRouter
Generic support for ConnectionRouters.
| 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 | |
AbstractRouter()
|
|
| Method Summary | |
Object |
getConstraint(Connection connection)
Returns the constraint for the given Connection. |
protected Point |
getEndPoint(Connection connection)
A convenience method for obtaining a connection's endpoint. |
protected Point |
getStartPoint(Connection conn)
A convenience method for obtaining a connection's start point. |
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 |
setConstraint(Connection connection,
Object constraint)
Sets the constraint for the given Connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.draw2d.ConnectionRouter |
route |
| Constructor Detail |
public AbstractRouter()
| Method Detail |
public Object getConstraint(Connection connection)
getConstraint in interface ConnectionRouterconnection - The connection
protected Point getEndPoint(Connection connection)
ConnectionAnchor. The returned Point is a static singleton that is reused to reduce
garbage collection. The caller may modify this point in any way. However, the point
will be reused and its values overwritten during the next call to this method.
connection - The connection
protected Point getStartPoint(Connection conn)
ConnectionAnchor. The returned Point is a static singleton that is reused to
reduce garbage collection. The caller may modify this point in any way. However, the
point will be reused and its values overwritten during the next call to this method.
conn - The connection
public void invalidate(Connection connection)
invalidate in interface ConnectionRouterconnection - The connection to invalidatepublic void remove(Connection connection)
remove in interface ConnectionRouterconnection - The connection to remove
public void setConstraint(Connection connection,
Object constraint)
setConstraint in interface ConnectionRouterconnection - The connectionconstraint - The constraint
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||