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

Field Summary
private  int coord
           
private  int index
           
 
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
 

Field Detail

index

private int index

coord

private int coord
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)