|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 conn)
Returns a Point representing the end of the given Connection. |
protected Point |
getStartPoint(Connection conn)
Returns a Point representing the start of 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 |
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 ConnectionRouter
connection
- The connection
protected Point getEndPoint(Connection conn)
conn
- The connection
protected Point getStartPoint(Connection conn)
conn
- The connection
public void invalidate(Connection connection)
invalidate
in interface ConnectionRouter
connection
- The connection to invalidatepublic void remove(Connection connection)
remove
in interface ConnectionRouter
connection
- The connection to removepublic void setConstraint(Connection connection, Object constraint)
setConstraint
in interface ConnectionRouter
connection
- The connectionconstraint
- The constraint
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |