|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--waba.fx.Rect
Rect is a rectangle.
Field Summary | |
int |
height
rectangle height |
static int |
SAME
|
int |
width
rectangle width |
int |
x
x position |
int |
y
y position |
Constructor Summary | |
Rect(int x,
int y,
int width,
int height)
Constructs a rectangle with the given x, y, width and height. |
Method Summary | |
boolean |
contains(int xx,
int yy)
returns true if the point xx,yy is inside this rect. added by guich |
Rect |
modifiedBy(int deltaX,
int deltaY,
int deltaW,
int deltaH)
returns a new rect modified in the specified parameters. you can use the constant SAME so the value is not modified. |
java.lang.String |
toString()
Returns the string representation of the object. |
void |
translate(int deltaX,
int deltaY)
translates this rect. the new positions will be this.x+xx,this.y+yy. |
Methods inherited from class java.lang.Object |
hashCode |
Field Detail |
public int x
public int y
public int width
public int height
public static final int SAME
Constructor Detail |
public Rect(int x, int y, int width, int height)
Method Detail |
public boolean contains(int xx, int yy)
public java.lang.String toString()
public void translate(int deltaX, int deltaY)
public Rect modifiedBy(int deltaX, int deltaY, int deltaW, int deltaH)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |