diva.canvas.connector
Class PerimeterTarget
java.lang.Object
diva.canvas.connector.AbstractConnectorTarget
diva.canvas.connector.PerimeterTarget
- All Implemented Interfaces:
- ConnectorTarget
- Direct Known Subclasses:
- ArcTutorial.SelfPTarget, EdgeController.EdgeTarget
public class PerimeterTarget
- extends AbstractConnectorTarget
A connector target that returns sites on the perimeter of a figure.
- Version:
- $Revision: 1.5 $
- Author:
- John Reekie (johnr@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)
Method Summary |
Site |
getHeadSite(Figure f,
double x,
double y)
Return the nearest site on the figure if the figure
is not a connector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerimeterTarget
public PerimeterTarget()
getHeadSite
public Site getHeadSite(Figure f,
double x,
double y)
- Return the nearest site 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.