All Packages Class Hierarchy This Package Previous Next Index
Class com.bulletproof.gui.Rectangle
java.lang.Object
|
+----com.bulletproof.gui.Rectangle
- public class Rectangle
- extends Object
A class to encapsulate a width and a height Dimension.
-
Rectangle(int, int, int, int)
-
Constructs a Dimension and initializes it to the specified width and
specified height.
-
getHeight()
- Returns the height of this Rectangle object.
-
getWidth()
- Returns the width of this Rectangle object.
-
getX()
- Returns the x position of this Rectangle object.
-
getY()
- Returns the y position of this Rectangle object.
Rectangle
public Rectangle(int x,
int y,
int width,
int height)
- Constructs a Dimension and initializes it to the specified width and
specified height.
- Parameters:
- width - the specified width dimension
- height - the specified height dimension
getX
public int getX()
- Returns the x position of this Rectangle object.
getY
public int getY()
- Returns the y position of this Rectangle object.
getWidth
public int getWidth()
- Returns the width of this Rectangle object.
getHeight
public int getHeight()
- Returns the height of this Rectangle object.
All Packages Class Hierarchy This Package Previous Next Index