Package ptolemy.vergil.actor
Class LinkController.LinkTarget
- java.lang.Object
-
- diva.canvas.connector.AbstractConnectorTarget
-
- diva.canvas.connector.PerimeterTarget
-
- ptolemy.vergil.actor.LinkController.LinkTarget
-
- All Implemented Interfaces:
ConnectorTarget
- Enclosing class:
- LinkController
public static class LinkController.LinkTarget extends PerimeterTarget
A connector target that returns sites on a link.
-
-
Constructor Summary
Constructors Constructor Description LinkTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptHead(Connector c, Figure f)
Accept the head of the connector.boolean
acceptTail(Connector c, Figure f)
Accept the tail of the connector.Site
getHeadSite(Figure f, double x, double y)
Get the head site.-
Methods inherited from class diva.canvas.connector.AbstractConnectorTarget
getHeadSite, getHeadSite, getHeadSite, getTailSite, getTailSite, getTailSite, getTailSite
-
-
-
-
Method Detail
-
acceptHead
public boolean acceptHead(Connector c, Figure f)
Accept the head of the connector.- Overrides:
acceptHead
in classAbstractConnectorTarget
- Parameters:
c
- The connector.f
- The figure.- Returns:
- True if the object is a Port, a Vertex or a Locatable contained by a Port and the super class accepts the head. Otherwise, return false.
-
acceptTail
public boolean acceptTail(Connector c, Figure f)
Accept the tail of the connector.- Overrides:
acceptTail
in classAbstractConnectorTarget
- Parameters:
c
- The connector.f
- The figure.- Returns:
- True if the object is a Port, a Vertex or a Locatable contained by a Port and the super class accepts the tail Otherwise, return false.
-
getHeadSite
public Site getHeadSite(Figure f, double x, double y)
Get the head site.- Specified by:
getHeadSite
in interfaceConnectorTarget
- Overrides:
getHeadSite
in classPerimeterTarget
- Parameters:
f
- The figure.x
- The x location.y
- The y location.- Returns:
- The head site.
-
-