|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.rolemodelsoft.drawlet.basics.AbstractLocator
|
+--com.rolemodelsoft.drawlet.basics.PolarCoordinate
This provides basic default functionality for MovableLocators. Basically, it's just java.awt.Point with the proper interface to be interchangeable with other Locators
| Field Summary | |
protected int |
r
The x coordinate of this DrawingPoint. |
protected double |
theta
The y coordinate of this DrawingPoint. |
| Constructor Summary | |
PolarCoordinate(int r,
double theta)
Constructs and initializes a PolarCoordinate from the specified r and theta values. |
|
| 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 class com.rolemodelsoft.drawlet.basics.AbstractLocator |
duplicate,
duplicateIn,
postDuplicate,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected int r
protected double theta
| Constructor Detail |
public PolarCoordinate(int r,
double theta)
r - the radius.theta - the theta| Method Detail |
public int r()
public double theta()
public int x()
public int y()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||