sim.portrayal
Interface Fixed2D


public interface Fixed2D

A Fixed2D object has control over how it is moved by a MovablePortrayal2D object. Objects may wish to implement this interface to:

Objects which do not implement this interface have no say: MovablePortrayal2D will go directly to their fields and ask the fields to move them about.


Method Summary
 boolean maySetLocation(java.lang.Object field, java.lang.Object newObjectLocation)
          Returns true if the object permits you to change its location in the field.
 

Method Detail

maySetLocation

boolean maySetLocation(java.lang.Object field,
                       java.lang.Object newObjectLocation)
Returns true if the object permits you to change its location in the field. Else returns false. This can be used for various purposes: