JHotDraw 7.4.1

org.jhotdraw.draw.locator
Interface Locator

All Known Implementing Classes:
AbstractLocator, BezierLabelLocator, BezierPointLocator, FontSizeLocator, RelativeDecoratorLocator, RelativeLocator

public interface Locator

A locator encapsulates a strategy for locating a point on a Figure.


Design Patterns

Strategy
Locator encapsulates a strategy for locating a point on a Figure.
Strategy: Locator; Context: Figure.


Version:
$Id: Locator.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer

Method Summary
 java.awt.geom.Point2D.Double locate(Figure owner)
          Locates a position on the provided figure.
 java.awt.geom.Point2D.Double locate(Figure owner, Figure dependent)
          Locates a position on the provided figure relative to the dependent figure.
 

Method Detail

locate

java.awt.geom.Point2D.Double locate(Figure owner)
Locates a position on the provided figure.

Returns:
a point on the figure.

locate

java.awt.geom.Point2D.Double locate(Figure owner,
                                    Figure dependent)
Locates a position on the provided figure relative to the dependent figure.

Returns:
a point on the figure.

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