diva.graphx
Class EdgeController.EdgeTarget
java.lang.Object
diva.canvas.connector.AbstractConnectorTarget
diva.canvas.connector.PerimeterTarget
diva.graphx.EdgeController.EdgeTarget
- All Implemented Interfaces:
- ConnectorTarget
- Enclosing class:
- EdgeController
protected class EdgeController.EdgeTarget
- extends PerimeterTarget
An inner class that is used as the target for connectors
Method Summary |
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. |
Site |
getHeadSite(Figure f,
double x,
double y)
If we have any terminals, then return the connection
site of the terminal instead of a new perimeter site. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgeController.EdgeTarget
protected EdgeController.EdgeTarget()
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 class AbstractConnectorTarget
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 class AbstractConnectorTarget
getHeadSite
public Site getHeadSite(Figure f,
double x,
double y)
- If we have any terminals, then return the connection
site of the terminal instead of a new perimeter site.
- Specified by:
getHeadSite
in interface ConnectorTarget
- Overrides:
getHeadSite
in class PerimeterTarget
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.