JHotDraw 7.1

org.jhotdraw.draw
Class AbstractLocator

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

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

AbstractLocator provides default implementations for the Locator interface.

Version:
2,1 2006-07-08 Added support for DOMStorable.
2.0 2006-01-14 Changed to support double precision coordinates.
1.0 2003-12-01 Derived from JHotDraw 5.4b1.
Author:
Werner Randelshofer

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-2007 (c) JHotDraw.org.
Some rights reserved.