GP
Interface Positionable

All Known Subinterfaces:
Graphic

public interface Positionable

This defines the interface for all objects that have a position associated with it.


Method Summary
 Position GetPosition()
          This method should return the current position of the object.
 void Move(double x, double y)
           
 void Move(Value x, Value y)
           
 void Move(Velocity velocity)
           
 void SetPosition(Position position)
          This method should set the current position of the object.
 

Method Detail

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)