ptolemy.vergil.actor
Class LinkController.LinkTarget

java.lang.Object
  extended by diva.canvas.connector.AbstractConnectorTarget
      extended by diva.canvas.connector.PerimeterTarget
          extended by 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
LinkController.LinkTarget()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkController.LinkTarget

public LinkController.LinkTarget()
Method Detail

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.