com.rolemodelsoft.drawlet
Interface MovableLocator
- All Known Implementing Classes:
- DrawingPoint, RelativePoint
- public interface MovableLocator
- extends Locator
This interface defines protocols for objects that provide
2-D coordinates which can be changed/manipulated
|
Method Summary |
void |
move(int x,
int y)
Moves the receiver to the x and y coordinates |
void |
translate(int x,
int y)
Moves the receiver in the x and y direction. |
void |
x(int x)
Set the x coordinate. |
void |
y(int y)
Set the y coordinate. |
| Methods inherited from interface com.rolemodelsoft.drawlet.Locator |
r,
theta,
x,
y |
move
public void move(int x,
int y)
- Moves the receiver to the x and y coordinates
- Parameters:
x - the new x coordinatey - the new x coordinate
translate
public void translate(int x,
int y)
- Moves the receiver in the x and y direction.
- Parameters:
x - amount to move in the x directiony - amount to move in the y direction
x
public void x(int x)
- Set the x coordinate.
- Parameters:
x - its new desired x coordinate.
y
public void y(int y)
- Set the y coordinate.
- Parameters:
y - its new desired y coordinate.