Package ptolemy.vergil.actor
Class LinkManhattanConnector
- java.lang.Object
-
- diva.canvas.AbstractFigure
-
- diva.canvas.connector.AbstractConnector
-
- diva.canvas.connector.ManhattanConnector
-
- ptolemy.vergil.actor.LinkManhattanConnector
-
- All Implemented Interfaces:
CanvasComponent
,Connector
,Figure
,VisibleComponent
,UserObjectContainer
- Direct Known Subclasses:
KielerLayoutConnector
public class LinkManhattanConnector extends ManhattanConnector
An extension to BasicManhattanRouter supporting links to multiports.- Since:
- Ptolemy II 5.2
- Version:
- $Id$
- Author:
- Edward A. Lee
- Pt.AcceptedRating:
- Red (eal)
- Pt.ProposedRating:
- Yellow (eal)
-
-
Field Summary
-
Fields inherited from class diva.canvas.connector.ManhattanConnector
_labelLocation
-
-
Constructor Summary
Constructors Constructor Description LinkManhattanConnector(Site tail, Site head, Link link)
Construct a new connector with the given tail and head for the specified link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Site
getHeadSite()
Override the base class to return a different site for each connection to a multiport.Link
getLink()
Return the associated link.Site
getTailSite()
Override the base class to return a different site for each connection to a multiport.-
Methods inherited from class diva.canvas.connector.ManhattanConnector
getBendRadius, getRouter, repositionLabel, route, setBendRadius, setRouter, translate
-
Methods inherited from class diva.canvas.connector.AbstractConnector
getBounds, getDashArray, getHeadEnd, getLabelFigure, getLineWidth, getShape, getStroke, getStrokePaint, getTailEnd, headMoved, hit, intersects, paint, reroute, setDashArray, setHeadEnd, setHeadSite, setLabelFigure, setLineWidth, setShape, setStroke, setStrokePaint, setTailEnd, setTailSite, tailMoved, transform
-
Methods inherited from class diva.canvas.AbstractFigure
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface diva.canvas.CanvasComponent
getTransformContext, repaint, repaint
-
Methods inherited from interface diva.canvas.Figure
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, setInteractor, setParent, setToolTipText
-
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
-
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, setVisible
-
-
-
-
Constructor Detail
-
LinkManhattanConnector
public LinkManhattanConnector(Site tail, Site head, Link link)
Construct a new connector with the given tail and head for the specified link. The head and tail sites may be representative sites for multiport, in which case they are not necessarily the ones returned by getHeadSite() or getTailSite(). Those methods will return new sites as needed to ensure that each each connection is to its own site.- Parameters:
tail
- The tail site.head
- The head site.link
- The link.
-
-
Method Detail
-
getHeadSite
public Site getHeadSite()
Override the base class to return a different site for each connection to a multiport.- Specified by:
getHeadSite
in interfaceConnector
- Overrides:
getHeadSite
in classAbstractConnector
- Returns:
- The connection site.
- See Also:
AbstractConnector.setHeadSite(Site)
-
getLink
public Link getLink()
Return the associated link.- Returns:
- The associated link.
-
getTailSite
public Site getTailSite()
Override the base class to return a different site for each connection to a multiport.- Specified by:
getTailSite
in interfaceConnector
- Overrides:
getTailSite
in classAbstractConnector
- Returns:
- The connection site.
- See Also:
AbstractConnector.setTailSite(Site)
-
-