org.topcased.modeler.uml.sequencediagram.routers
Class MessageRouter
java.lang.Object
org.eclipse.draw2d.AbstractRouter
org.eclipse.draw2d.BendpointConnectionRouter
org.eclipse.gmf.runtime.draw2d.ui.internal.routers.ObliqueRouter
org.eclipse.gmf.runtime.draw2d.ui.internal.routers.RectilinearRouter
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 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 |
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 |
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 |
MessageRouter
public MessageRouter()
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 connectionwidth
- the width between the lifeline and the edgenewLine
- the list of point to update
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.