|
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 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 ConnectionRouter
connection
- 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 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 |