diva.graphx
Class EdgeController.EdgeTarget

java.lang.Object
  extended by diva.canvas.connector.AbstractConnectorTarget
      extended by diva.canvas.connector.PerimeterTarget
          extended by 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


Constructor Summary
protected EdgeController.EdgeTarget()
           
 
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 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

EdgeController.EdgeTarget

protected EdgeController.EdgeTarget()
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 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.