org.eclipse.gmt.umlx.editor.draw2dfixes
Class ManhattanConnectionRouter

java.lang.Object
  extended by org.eclipse.draw2d.AbstractRouter
      extended by org.eclipse.gmt.umlx.editor.draw2dfixes.ManhattanConnectionRouter
All Implemented Interfaces:
org.eclipse.draw2d.ConnectionRouter

public final class ManhattanConnectionRouter
extends org.eclipse.draw2d.AbstractRouter

Provides a Connection with an orthogonal route between the Connection's source and target anchors.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.ConnectionRouter
org.eclipse.draw2d.ConnectionRouter.NullConnectionRouter
 
Field Summary
 
Fields inherited from interface org.eclipse.draw2d.ConnectionRouter
NULL
 
Constructor Summary
ManhattanConnectionRouter()
           
 
Method Summary
 java.lang.Object getConstraint(org.eclipse.draw2d.Connection connection)
          Gets the constraint for the given Connection.
 void invalidate(org.eclipse.draw2d.Connection connection)
           
 void remove(org.eclipse.draw2d.Connection connection)
           
 void route(org.eclipse.draw2d.Connection conn)
           
 void setConstraint(org.eclipse.draw2d.Connection connection, java.lang.Object constraint)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManhattanConnectionRouter

public ManhattanConnectionRouter()
Method Detail

invalidate

public void invalidate(org.eclipse.draw2d.Connection connection)
Specified by:
invalidate in interface org.eclipse.draw2d.ConnectionRouter
Overrides:
invalidate in class org.eclipse.draw2d.AbstractRouter

getConstraint

public java.lang.Object getConstraint(org.eclipse.draw2d.Connection connection)
Gets the constraint for the given Connection. The constraint is the paths list of bend points for this connection.

Specified by:
getConstraint in interface org.eclipse.draw2d.ConnectionRouter
Overrides:
getConstraint in class org.eclipse.draw2d.AbstractRouter
Parameters:
connection - The connection whose constraint we are retrieving
Returns:
The constraint

remove

public void remove(org.eclipse.draw2d.Connection connection)
Specified by:
remove in interface org.eclipse.draw2d.ConnectionRouter
Overrides:
remove in class org.eclipse.draw2d.AbstractRouter

route

public void route(org.eclipse.draw2d.Connection conn)

setConstraint

public void setConstraint(org.eclipse.draw2d.Connection connection,
                          java.lang.Object constraint)
Specified by:
setConstraint in interface org.eclipse.draw2d.ConnectionRouter
Overrides:
setConstraint in class org.eclipse.draw2d.AbstractRouter
See Also:
ConnectionRouter.setConstraint(org.eclipse.draw2d.Connection, java.lang.Object)