JHotDraw 7.5.1

org.jhotdraw.draw.locator
Class BezierPointLocator

java.lang.Object
  extended by org.jhotdraw.draw.locator.AbstractLocator
      extended by org.jhotdraw.draw.locator.BezierPointLocator
All Implemented Interfaces:
java.io.Serializable, Locator, DOMStorable

public class BezierPointLocator
extends AbstractLocator

A Locator which locates a node on the bezier path of a BezierFigure.

Version:
$Id: BezierPointLocator.java -1 $
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
BezierPointLocator(int index)
           
BezierPointLocator(int index, int coord)
           
 
Method Summary
 java.awt.geom.Point2D.Double locate(Figure owner)
          Locates a position on the provided figure.
 void read(DOMInput in)
           
 void write(DOMOutput out)
           
 
Methods inherited from class org.jhotdraw.draw.locator.AbstractLocator
locate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BezierPointLocator

public BezierPointLocator(int index)

BezierPointLocator

public BezierPointLocator(int index,
                          int coord)
Method Detail

locate

public java.awt.geom.Point2D.Double locate(Figure owner)
Description copied from interface: Locator
Locates a position on the provided figure.

Returns:
a point on the figure.

write

public void write(DOMOutput out)

read

public void read(DOMInput in)

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