diva.canvas.connector
Class CenterTarget

java.lang.Object
  extended by diva.canvas.connector.AbstractConnectorTarget
      extended by diva.canvas.connector.CenterTarget
All Implemented Interfaces:
ConnectorTarget

public class CenterTarget
extends AbstractConnectorTarget

An implementation of connector targets that finds center sites.

Version:
$Revision: 1.4 $
Author:
John Reekie (johnr@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)

Constructor Summary
CenterTarget()
           
 
Method Summary
 Site getHeadSite(Figure f, double x, double y)
          Return a center site located on the figure, if the figure is not a connector.
 
Methods inherited from class diva.canvas.connector.AbstractConnectorTarget
acceptHead, acceptTail, 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

CenterTarget

public CenterTarget()
Method Detail

getHeadSite

public Site getHeadSite(Figure f,
                        double x,
                        double y)
Return a center site located on the figure, if the figure is not a connector.

Specified by:
getHeadSite in interface ConnectorTarget
Specified by:
getHeadSite in class AbstractConnectorTarget


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.