| java.lang.Object net.mygwt.ui.client.util.Rectangle
Rectangle | public class Rectangle (Code) | | Instances of this class represent rectangular areas in an (x, y) coordinate
system.
See Also: Point |
Field Summary | |
public int | height | public int | width | public int | x The x coordinate. | public int | y The y coordinate. |
Constructor Summary | |
public | Rectangle() Create a new rectangle instance. | public | Rectangle(int x, int y, int width, int height) Creates a new rectangle instance. |
Method Summary | |
public boolean | contains(int x, int y) Returns true if the point specified by the arguments is
inside the area specified by the receiver, and false
otherwise. | public boolean | equals(Object object) | public String | toString() |
height | public int height(Code) | | The height of the rectangle
|
width | public int width(Code) | | The width of the rectangle
|
x | public int x(Code) | | The x coordinate.
|
y | public int y(Code) | | The y coordinate.
|
Rectangle | public Rectangle()(Code) | | Create a new rectangle instance.
|
Rectangle | public Rectangle(int x, int y, int width, int height)(Code) | | Creates a new rectangle instance.
Parameters: x - the x value Parameters: y - the y value Parameters: width - the rectangle's width Parameters: height - the rectangle's height |
contains | public boolean contains(int x, int y)(Code) | | Returns true if the point specified by the arguments is
inside the area specified by the receiver, and false
otherwise.
Parameters: x - the x coordinate of the point to test for containment Parameters: y - the y coordinate of the point to test for containment true if the rectangle contains the point andfalse otherwise |
|
|