Class OvalShape

java.lang.Object
  extended byShape
      extended byOvalShape

public class OvalShape
extends Shape

Oval shape for the Drawing program

Version:
20050606
Author:
Peter Gadfort

Field Summary
 
Fields inherited from class Shape
 
Constructor Summary
OvalShape(int x, int y, int height, int width, Color color)
          Constructor for objects of class Oval
 
Method Summary
 void draw(Graphics g)
          Draws the shape on the input screen
 
Methods inherited from class Shape
getColor, getHeight, getWidth, getX, getY, setColor, setHeight, setWidth, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OvalShape

public OvalShape(int x,
                 int y,
                 int height,
                 int width,
                 Color color)
Constructor for objects of class Oval

Parameters:
x - X position of the oval
y - Y position of the oval
height - Height of the oval
width - Width of the oval
color - Color of the oval
Method Detail

draw

public void draw(Graphics g)
Draws the shape on the input screen

Specified by:
draw in class Shape
Parameters:
g - Graphics screen used to draw the shaep on