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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkController.LinkTarget
public LinkController.LinkTarget()
acceptHead
public boolean acceptHead(Connector c,
Figure f)
- Accept the head of the connector.
- Overrides:
acceptHead
in class AbstractConnectorTarget
- 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 class AbstractConnectorTarget
- 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 interface ConnectorTarget
- Overrides:
getHeadSite
in class PerimeterTarget
- Parameters:
f
- The figure.x
- The x location.y
- The y location.
- Returns:
- The head site.