JHotDraw 7.5.1

org.jhotdraw.draw.locator
Class AbstractLocator

java.lang.Object
  extended by org.jhotdraw.draw.locator.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 647 2010-01-24 22:52:59Z 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.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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.