Rectangle.add
Class Overview | Class Members |
This Package |
All Packages
public void add( int newx,
int newy )
Parameters
- newx
- the x coordinate of the new point.
- newy
- the y coordinate of the new point.
Description
Adds a point, specified by the integer arguments newx
and newy, to a rectangle. The resulting rectangle is
the smallest rectangle that contains both the rectangle
and the specified point.
public void add( Point pt )
Parameters
- a
- point.
Description
Adds a point to this rectangle. The resulting rectangle is
the smallest rectangle that contains both the rectangle
and the specified point.
public void add( Rectangle r )
Parameters
- a
- rectangle.
Description
Adds a rectangle to this rectangle. The resulting rectangle is
the union of the two rectangles.