JHotDraw 6.0b1

org.jhotdraw.framework
Interface Locator

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable, Storable
All Known Implementing Classes:
AbstractLocator, OffsetLocator, PeripheralLocator, RelativeLocator

public interface Locator
extends Storable, java.io.Serializable, java.lang.Cloneable

Locators can be used to locate a position on a figure.


Design Patterns

 o Strategy
Locator encapsulates the strategy to locate a handle on a figure.


Method Summary
 java.awt.Point locate(Figure owner)
          Locates a position on the passed figure.
 
Methods inherited from interface org.jhotdraw.util.Storable
read, write
 

Method Detail

locate

java.awt.Point locate(Figure owner)
Locates a position on the passed figure.

Returns:
a point on the figure.

JHotDraw 6.0b1