Package ptolemy.vergil.modal
Class TransitionController.LinkTarget
- java.lang.Object
-
- diva.canvas.connector.AbstractConnectorTarget
-
- diva.canvas.connector.PerimeterTarget
-
- ptolemy.vergil.modal.TransitionController.LinkTarget
-
- All Implemented Interfaces:
ConnectorTarget
- Enclosing class:
- TransitionController
public static class TransitionController.LinkTarget extends PerimeterTarget
A Link target.
-
-
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)
Return true if the given connector can be connected to the given figure.boolean
acceptTail(Connector c, Figure f)
Return true if the given connector can be connected to the given figure.-
Methods inherited from class diva.canvas.connector.PerimeterTarget
getHeadSite
-
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)
Description copied from class:AbstractConnectorTarget
Return true if the given connector can be connected to the given figure. In this base class return true if the tail of the connector is not attached to the same figure.- Overrides:
acceptHead
in classAbstractConnectorTarget
- Parameters:
c
- The connectorf
- The figure- Returns:
- true if the tail of the connector can be connected to the figure
-
acceptTail
public boolean acceptTail(Connector c, Figure f)
Description copied from class:AbstractConnectorTarget
Return true if the given connector can be connected to the given figure. In this base class return true if the head of the connector is not attached to the same figure.- Overrides:
acceptTail
in classAbstractConnectorTarget
- Parameters:
c
- The connectorf
- The figure- Returns:
- true if the head of the connector can be connected to the figure
-
-