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...
-
ResizableObject(int, int, int, int, Color)
- Constructs a GraphicsObject that's resizable
-
reshape(int, int, int, int)
-
-
resize(int, int)
- Resize the GraphicsObject with the passed width and height
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
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
reshape
public void reshape(int x,
int y,
int width,
int height)
All Packages Class Hierarchy This Package Previous Next Index