org.eclipse.xtext.xtext.ui.graph.figures.layouts
Class RailroadConnectionRouter

java.lang.Object
  extended by org.eclipse.draw2d.AbstractRouter
      extended by org.eclipse.xtext.xtext.ui.graph.figures.layouts.RailroadConnectionRouter
All Implemented Interfaces:
org.eclipse.draw2d.ConnectionRouter

public class RailroadConnectionRouter
extends org.eclipse.draw2d.AbstractRouter

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
static class RailroadConnectionRouter.BendConstraint
           
 
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
RailroadConnectionRouter()
           
 
Method Summary
 java.lang.Object getConstraint(org.eclipse.draw2d.Connection connection)
           
 void route(org.eclipse.draw2d.Connection connection)
           
 void setConstraint(org.eclipse.draw2d.Connection connection, java.lang.Object constraint)
           
 
Methods inherited from class org.eclipse.draw2d.AbstractRouter
getEndPoint, getStartPoint, invalidate, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RailroadConnectionRouter

public RailroadConnectionRouter()
Method Detail

route

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

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

getConstraint

public java.lang.Object getConstraint(org.eclipse.draw2d.Connection connection)
Specified by:
getConstraint in interface org.eclipse.draw2d.ConnectionRouter
Overrides:
getConstraint in class org.eclipse.draw2d.AbstractRouter