|
MATES 3.0-rc2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mates.util.Bounds
Class for defining the bounds on a region
Position| Constructor Summary | |
Bounds()
Creates a new Bounds object. |
|
| Method Summary | |
Position |
closestValidPosition(Position position)
Returns the closest position to position that is
within the bounds. |
boolean |
contains(Position position)
Returns true if the region defined by the bounds
contains position. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Bounds()
| Method Detail |
public boolean contains(Position position)
true if the region defined by the bounds
contains position. The default implementation of
this function always returns true.
public Position closestValidPosition(Position position)
position that is
within the bounds. If no such position is available,
null is returned.
|
MATES 3.0-rc2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||