All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cs101.canvas.ResizableObject

java.lang.Object
   |
   +----cs101.canvas.GraphicsObject
           |
           +----cs101.canvas.ResizableObject

public abstract class ResizableObject
extends GraphicsObject
Allows a GraphicsObject to be resizable such as a
rectangle, oval, line...


Constructor Index

 o ResizableObject(int, int, int, int, Color)
Constructs a GraphicsObject that's resizable

Method Index

 o reshape(int, int, int, int)
 o resize(int, int)
Resize the GraphicsObject with the passed width and height

Constructors

 o ResizableObject
 public ResizableObject(int x,
                        int y,
                        int width,
                        int height,
                        Color graphicsColor)
Constructs a GraphicsObject that's resizable

Parameters:
x - x coordinate of left side
y - y coordinate of top side
width - width of the GraphicsObject
height - height of the GraphicsObject
graphicsColor - color of the GraphicsObject
Returns:
none

Methods

 o resize
 public void resize(int width,
                    int height)
Resize the GraphicsObject with the passed width and height

Parameters:
width - new width of the GraphicsObject
width - new height of the GraphicsObject
Returns:
none
 o reshape
 public void reshape(int x,
                     int y,
                     int width,
                     int height)

All Packages  Class Hierarchy  This Package  Previous  Next  Index