public interface Constrained
Objects which implement this method can:
Objects which do NOT implement this interface have no say: MovablePortrayal2D will have FieldPortrayals go directly to their fields and move them about.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
constrainLocation(java.lang.Object field,
java.lang.Object location)
Given a field and a proposed location to move the Object to, returns a new location
to which the Object should actually be moved, or (optionally) null, which means that
the Object should not be moved.
|
java.lang.Object constrainLocation(java.lang.Object field, java.lang.Object location)