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 |
---|---|
GDimension |
GRectangle.getSize()
Returns a new
GDimension object with the size of the GRectangle . |
GDimension |
GRect.getSize()
Returns the size of this object as a
GDimension . |
GDimension |
GDimension.getSize()
Returns a new
GDimension object equal to this one. |
GDimension |
GImage.getSize()
Returns the size of this object as a
GDimension . |
GDimension |
GObject.getSize()
Returns the size of the bounding box for this object.
|
GDimension |
GOval.getSize()
Returns the size of this object as a
GDimension . |
Modifier and Type | Method and Description |
---|---|
void |
GRectangle.setBounds(GPoint pt,
GDimension size)
Sets the components of a
GRectangle from the specified location and size. |
void |
GRectangle.setSize(GDimension size)
Sets the size of the
GRectangle to the specified dimension. |
void |
GRect.setSize(GDimension size)
Changes the size of this object to the specified
GDimension . |
void |
GDimension.setSize(GDimension size)
Sets the width and height of one
GDimension object equal to that of another. |
void |
GImage.setSize(GDimension size)
Changes the size of this object to the specified
GDimension . |
void |
GResizable.setSize(GDimension size)
Changes the size of this object as specified by the
GDimension
object. |
void |
GOval.setSize(GDimension size)
Changes the size of this object to the specified
GDimension . |
Constructor and Description |
---|
GDimension(GDimension size)
Constructs a new
GDimension object from an existing one. |
GRectangle(GDimension size)
Constructs a new
GRectangle at the origin with the specified size. |
GRectangle(GPoint pt,
GDimension size)
Constructs a new
GRectangle with the specified location and size. |