All Packages Class Hierarchy This Package Previous Next Index
Class cs101.canvas.Disc
java.lang.Object
|
+----cs101.canvas.GraphicsObject
|
+----cs101.canvas.ResizableObject
|
+----cs101.canvas.FilledObject
|
+----cs101.canvas.RoundRect
|
+----cs101.canvas.Disc
- public class Disc
- extends RoundRect
A Disc GraphicsObject to be used in the Towers of
Hanoi lab. It differs from a round rectangle in that
a row of pixels separate the disks from on another
-
Disc(int, int, int, int)
- Constructs a disc
-
Disc(int, int, int, int, Color)
- Constructs a disc with a color
Disc
public Disc(int x,
int y,
int width,
int height)
- Constructs a disc
- Parameters:
- x - x coordinate of left side
- y - y coordinate of top side
- width - width of disc
- height - height of disc
- Returns:
- none
Disc
public Disc(int x,
int y,
int width,
int height,
Color diskColor)
- Constructs a disc with a color
- Parameters:
- x - x coordinate of left side
- y - y coordinate of top side
- width - width of disc
- height - height of disc
- diskColor - color of disc
- Returns:
- none
All Packages Class Hierarchy This Package Previous Next Index