|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrle.core.board.Locator
public class Locator
Immutable object for locating stuff in the Board.
Field Summary | |
---|---|
int |
height
|
int |
width
|
int |
x
|
int |
y
|
Constructor Summary | |
---|---|
Locator(Board board,
RLPoint loc)
|
|
Locator(Board board,
RLPoint loc,
RLDimension dim)
|
|
Locator(Board board,
RLRectangle bounds)
|
|
Locator(Board board,
RLRectangle bounds,
java.util.HashMap<java.lang.String,java.lang.Object> attributes)
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
attributes()
Return any attributes associated. |
Board |
board()
Returns the board that this Locator points to. |
RLRectangle |
bounds()
Returns the bounding rectangle for this Locator. |
boolean |
isRectangular()
Return whether this Locator represents a filled rectangle, i.e. |
RLPoint |
point()
Returns the upper left corner of the bounding rectangle. |
java.util.Set<RLPoint> |
points()
Return the set of RLPoints that are part of this Locator. |
RLDimension |
size()
Returns the dimensions of the bounding rectangle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int x
public final int y
public final int width
public final int height
Constructor Detail |
---|
public Locator(Board board, RLPoint loc)
public Locator(Board board, RLPoint loc, RLDimension dim)
public Locator(Board board, RLRectangle bounds)
public Locator(Board board, RLRectangle bounds, java.util.HashMap<java.lang.String,java.lang.Object> attributes)
Method Detail |
---|
public java.util.Set<RLPoint> points()
public RLPoint point()
public RLRectangle bounds()
public RLDimension size()
public java.util.Map<java.lang.String,java.lang.Object> attributes()
public Board board()
public boolean isRectangular()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |