com.rolemodelsoft.drawlet
Interface Locator

All Known Subinterfaces:
MovableLocator, RelativeLocator
All Known Implementing Classes:
AbstractLocator

public interface Locator
extends Duplicatable, java.io.Serializable

This interface defines protocols for objects that provide 2-D coordinates.


Method Summary
 int r()
          Answer the radius of the Locator (as a PolarCoordinate).
 double theta()
          Answer the angle in radians of the Locator (as a PolarCoordinate).
 int x()
          Answer the x coordinate.
 int y()
          Answer the y coordinate.
 
Methods inherited from interface com.rolemodelsoft.drawlet.util.Duplicatable
duplicate, duplicateIn, postDuplicate
 

Method Detail

r

public int r()
Answer the radius of the Locator (as a PolarCoordinate).
Returns:
an integer representing the radius

theta

public double theta()
Answer the angle in radians of the Locator (as a PolarCoordinate).
Returns:
double representing theta

x

public int x()
Answer the x coordinate.
Returns:
an integer representing the x coordinate

y

public int y()
Answer the y coordinate.
Returns:
an integer representing the y coordinate