JHotDraw 7.5.1

org.jhotdraw.draw.locator
Interface Locator

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

@NotNull
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 654 2010-06-25 13:27:08Z 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.