JHotDraw 7.3.1

org.jhotdraw.draw
Class AbstractLocator

java.lang.Object
  extended by org.jhotdraw.draw.AbstractLocator
All Implemented Interfaces:
java.io.Serializable, Locator, DOMStorable
Direct Known Subclasses:
BezierPointLocator, RelativeLocator

public abstract class AbstractLocator
extends java.lang.Object
implements Locator, DOMStorable, java.io.Serializable

This abstract class can be extended to implement a Locator.

Version:
$Id: AbstractLocator.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
AbstractLocator()
          Creates a new instance.
 
Method Summary
 java.awt.geom.Point2D.Double locate(Figure owner, Figure dependent)
          Locates a position on the provided figure relative to the dependent figure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jhotdraw.draw.Locator
locate
 
Methods inherited from interface org.jhotdraw.xml.DOMStorable
read, write
 

Constructor Detail

AbstractLocator

public AbstractLocator()
Creates a new instance.

Method Detail

locate

public java.awt.geom.Point2D.Double locate(Figure owner,
                                           Figure dependent)
Description copied from interface: Locator
Locates a position on the provided figure relative to the dependent figure.

Specified by:
locate in interface Locator
Returns:
a point on the figure.

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.