|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.connector.AbstractConnector
diva.canvas.connector.ManhattanConnector
ptolemy.vergil.actor.LinkManhattanConnector
public class LinkManhattanConnector
An extension to BasicManhattanRouter supporting links to multiports.
Red (eal) |
Yellow (eal) |
Field Summary | |
---|---|
private IOPort |
_headPort
The port at the head, if there is one and it's an IOPort. |
private java.util.ArrayList |
_headSites
Head sites, in case this is a multiport. |
private Link |
_link
The link. |
private static BasicManhattanRouter |
_router
Specialized router. |
private IOPort |
_tailPort
The port at the tail, if there is one and it's an IOPort. |
private java.util.ArrayList |
_tailSites
Tail sites, in case this is a multiport. |
Constructor Summary | |
---|---|
LinkManhattanConnector(Site tail,
Site head,
Link link)
Construct a new connector with the given tail and head for the specified link. |
Method Summary | |
---|---|
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.Figure |
---|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, setInteractor, setParent, setToolTipText |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, paint, setVisible |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getTransformContext, repaint, repaint |
Methods inherited from interface diva.util.UserObjectContainer |
---|
getUserObject, setUserObject |
Field Detail |
---|
private IOPort _headPort
private java.util.ArrayList _headSites
private Link _link
private static BasicManhattanRouter _router
private IOPort _tailPort
private java.util.ArrayList _tailSites
Constructor Detail |
---|
public LinkManhattanConnector(Site tail, Site head, Link link)
tail
- The tail site.head
- The head site.link
- The link.Method Detail |
---|
public Site getHeadSite()
getHeadSite
in interface Connector
getHeadSite
in class AbstractConnector
public Link getLink()
public Site getTailSite()
getTailSite
in interface Connector
getTailSite
in class AbstractConnector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |