public interface GResizable
setSize
and setBounds
methods.Modifier and Type | Method and Description |
---|---|
void |
setBounds(double x,
double y,
double width,
double height)
Changes the bounds of this object to the specified values.
|
void |
setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified
GRectangle . |
void |
setSize(double width,
double height)
Changes the size of this object to the specified width and height.
|
void |
setSize(GDimension size)
Changes the size of this object as specified by the
GDimension
object. |
void setSize(double width, double height)
width
- The new width of the objectheight
- The new height of the objectvoid setSize(GDimension size)
GDimension
object.size
- A GDimension
object specifying the new sizevoid setBounds(double x, double y, double width, double height)
x
- The new x-coordinate for the objecty
- The new y-coordinate for the objectwidth
- The new width of the objectheight
- The new height of the objectvoid setBounds(GRectangle bounds)
GRectangle
.bounds
- A GRectangle
specifying the new bounds