acm.graphics
Interface GResizable

All Known Implementing Classes:
G3DRect, GImage, GOval, GRect, GRoundRect

public interface GResizable

Specifies the characteristics of a graphical object that supports the setSize and setBounds methods.


Method Summary
 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.
 

Method Detail

setBounds

void setBounds(double x,
               double y,
               double width,
               double height)
Changes the bounds of this object to the specified values.

Parameters:
x - The new x-coordinate for the object
y - The new y-coordinate for the object
width - The new width of the object
height - The new height of the object

setBounds

void setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified GRectangle.

Parameters:
bounds - A GRectangle specifying the new bounds

setSize

void setSize(double width,
             double height)
Changes the size of this object to the specified width and height.

Parameters:
width - The new width of the object
height - The new height of the object

setSize

void setSize(GDimension size)
Changes the size of this object as specified by the GDimension object.

Parameters:
size - A GDimension object specifying the new size