UML

org.topcased.modeler.uml.sequencediagram.routers
Class MessageRouter

java.lang.Object
  extended by org.eclipse.draw2d.AbstractRouter
      extended by org.eclipse.draw2d.BendpointConnectionRouter
          extended by org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter
              extended by org.eclipse.gmf.runtime.draw2d.ui.internal.routers.RectilinearRouter
                  extended by org.topcased.modeler.uml.sequencediagram.routers.MessageRouter
All Implemented Interfaces:
org.eclipse.draw2d.ConnectionRouter, org.eclipse.gmf.runtime.draw2d.ui.internal.routers.OrthogonalRouter
Direct Known Subclasses:
CallRouter, SignalRouter

public abstract class MessageRouter
extends org.eclipse.gmf.runtime.draw2d.ui.internal.routers.RectilinearRouter

The router for the messages


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter
org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter.ArrayListMap
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.ConnectionRouter
org.eclipse.draw2d.ConnectionRouter.NullConnectionRouter
 
Field Summary
 
Fields inherited from class org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter
ROUTER_FLAG_SKIPNORMALIZATION, routerFlags, SELFRELSIZEINCR, SELFRELSIZEINIT
 
Fields inherited from interface org.eclipse.draw2d.ConnectionRouter
NULL
 
Constructor Summary
MessageRouter()
           
 
Method Summary
protected abstract  boolean isSelfConnection(org.eclipse.draw2d.Connection conn)
          Say if the connection is self
 void routeLine(org.eclipse.draw2d.Connection conn, int nestedRoutingDepth, org.eclipse.draw2d.geometry.PointList newLine)
          The route line is straigth or in 3 rectilinear parts if it's a self connection
protected  void setSelfPoints(org.eclipse.draw2d.Connection conn, int width, org.eclipse.draw2d.geometry.PointList newLine)
          Set the points for a self connection
 
Methods inherited from class org.eclipse.gmf.runtime.draw2d.ui.internal.routers.RectilinearRouter
checkEndSegment, checkEndSegments, removeSegmentsInViews, resetEndPointsToEdge, straightenPoints, updateIfNotRectilinear, updateToBiTerminal
 
Methods inherited from class org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter
calculateBendPoints, checkSelfRelConnection, getFigurePolygon, getSelfRelVertices, getStraightEdgePoint, invalidate, isAvoidingObstructions, isClosestDistance, isReorienting, remove, removePointsInViews, route, routeBendpoints, setConstraint
 
Methods inherited from class org.eclipse.draw2d.BendpointConnectionRouter
getConstraint
 
Methods inherited from class org.eclipse.draw2d.AbstractRouter
getEndPoint, getStartPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageRouter

public MessageRouter()
Method Detail

routeLine

public void routeLine(org.eclipse.draw2d.Connection conn,
                      int nestedRoutingDepth,
                      org.eclipse.draw2d.geometry.PointList newLine)
The route line is straigth or in 3 rectilinear parts if it's a self connection

Overrides:
routeLine in class org.eclipse.gmf.runtime.draw2d.ui.internal.routers.RectilinearRouter
See Also:
ObliqueRouter.routeLine(org.eclipse.draw2d.Connection, int, org.eclipse.draw2d.geometry.PointList)

isSelfConnection

protected abstract boolean isSelfConnection(org.eclipse.draw2d.Connection conn)
Say if the connection is self

Parameters:
conn - the connection
Returns:
true if it's a self connection

setSelfPoints

protected void setSelfPoints(org.eclipse.draw2d.Connection conn,
                             int width,
                             org.eclipse.draw2d.geometry.PointList newLine)
Set the points for a self connection

Parameters:
conn - the connection
width - the width between the lifeline and the edge
newLine - the list of point to update

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.