GP
Interface Positionable
- All Known Subinterfaces:
- Graphic
- public interface Positionable
This defines the interface for all objects that have a position
associated with it.
SetPosition
public void SetPosition(Position position)
- This method should set the current position of the object.
- Parameters:
position
- the new position
GetPosition
public Position GetPosition()
- This method should return the current position of the object.
- Returns:
- the current position of the object
Move
public void Move(double x,
double y)
Move
public void Move(Value x,
Value y)
Move
public void Move(Velocity velocity)