JHotDraw 7.4.1

org.jhotdraw.draw.locator
Class FontSizeLocator

java.lang.Object
  extended by org.jhotdraw.draw.locator.FontSizeLocator
All Implemented Interfaces:
Locator

public class FontSizeLocator
extends java.lang.Object
implements Locator

FontSizeLocator is used by FontSizeHandle to locate its position on the drawing.

Version:
$Id: FontSizeLocator.java -1 $
Author:
Werner Randelshofer

Constructor Summary
FontSizeLocator()
          Creates a new instance.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontSizeLocator

public FontSizeLocator()
Creates a new instance.

Method Detail

locate

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

Specified by:
locate in interface Locator
Returns:
a Point2D.Double on the figure.

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.