Package | Description |
---|---|
acm.graphics |
This package provides a set of classes that support the creation of simple,
object-oriented graphical displays.
|
Modifier and Type | Method and Description |
---|---|
GRectangle |
GLabel.getBounds()
Returns a
GRectangle that specifies the bounding box for the string. |
GRectangle |
GRectangle.getBounds()
Returns a new
GRectangle whose bounds are the same as this one. |
GRectangle |
GRect.getBounds()
Returns the bounding box of this object.
|
GRectangle |
GCompound.getBounds()
Returns the bounding rectangle for this compound object, which consists of
the union of the bounding rectangles for each of the components.
|
GRectangle |
GPolygon.getBounds()
Returns the bounding box of this object, which is defined to be the
smallest rectangle that covers everything drawn by the figure.
|
GRectangle |
GLine.getBounds()
Returns the bounding box for this object.
|
GRectangle |
GArc.getBounds()
Returns the bounding box of the arc.
|
GRectangle |
GImage.getBounds()
Returns the bounding box of this object.
|
abstract GRectangle |
GObject.getBounds()
Returns the bounding box of this object, which is defined to be the
smallest rectangle that covers everything drawn by the figure.
|
GRectangle |
GPen.getBounds()
Returns the bounding box for the entire figure traced by the pen.
|
GRectangle |
GTurtle.getBounds()
Returns the bounding box for the entire figure traced by the turtle.
|
GRectangle |
GOval.getBounds()
Returns the bounding box of this object.
|
GRectangle |
GArc.getFrameRectangle()
Returns the bounds of the
GRectangle in which this arc is inscribed. |
GRectangle |
GRectangle.intersection(GRectangle r)
Returns the largest rectangle that is contained in both
r1 and r2 . |
GRectangle |
GRectangle.union(GRectangle r)
Returns the smallest rectangle that contains both
r1 and r2 . |
Modifier and Type | Method and Description |
---|---|
void |
GRectangle.add(GRectangle r)
Adjusts the bounds of the current
GRectangle so that it contains
the rectangle represented by the argument. |
GRectangle |
GRectangle.intersection(GRectangle r)
Returns the largest rectangle that is contained in both
r1 and r2 . |
boolean |
GRectangle.intersects(GRectangle r)
Returns
true if r1 and r2 have a nonempty
intersection. |
void |
GRectangle.setBounds(GRectangle bounds)
Sets the bounds of one
GRectangle equal to that of another. |
void |
GRect.setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified
GRectangle . |
void |
GImage.setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified
GRectangle . |
void |
GResizable.setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified
GRectangle . |
void |
GOval.setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified
Rectangle . |
void |
GArc.setFrameRectangle(GRectangle bounds)
Changes the arc bounds to the values from the specified
GRectangle . |
GRectangle |
GRectangle.union(GRectangle r)
Returns the smallest rectangle that contains both
r1 and r2 . |
Constructor and Description |
---|
GRectangle(GRectangle r)
Constructs a new
GRectangle from an existing one. |