|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Relocatable
A Relocatable is an object that can be found and moved.
Method Summary | |
---|---|
double |
distanceFrom(Point2D point)
Returns the distance that the Relocatable object is from the given Point2D. |
void |
moveTo(Point2D point)
Moves the Relocatable object to the given Point2D, by setting its position (part of its Shape) to the given Point2D. |
Method Detail |
---|
void moveTo(Point2D point)
point
- the Point2D to which the Relocatable object should move.double distanceFrom(Point2D point)
point
- the Point2D from which the distance is desired.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |