edu.ucsb.cs56.S11.bpmccurdy.lab03
Class Circle

java.lang.Object
  extended by java.awt.geom.RectangularShape
      extended by java.awt.geom.Ellipse2D
          extended by java.awt.geom.Ellipse2D.Double
              extended by edu.ucsb.cs56.S11.bpmccurdy.lab03.Circle
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable, java.lang.Cloneable

public class Circle
extends java.awt.geom.Ellipse2D.Double

Circle extends Ellipse2D to make it easier to draw circles because the parameters to the constructor are more convenient

Version:
for UCSB CS56, S11, 04/11/2011
Author:
P. Conrad
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Ellipse2D
java.awt.geom.Ellipse2D.Double, java.awt.geom.Ellipse2D.Float
 
Field Summary
 
Fields inherited from class java.awt.geom.Ellipse2D.Double
height, width, x, y
 
Constructor Summary
Circle(double x, double y, double r)
          Constructor for objects of class Circle
 
Method Summary
 
Methods inherited from class java.awt.geom.Ellipse2D.Double
getBounds2D, getHeight, getWidth, getX, getY, isEmpty, setFrame
 
Methods inherited from class java.awt.geom.Ellipse2D
contains, contains, equals, getPathIterator, hashCode, intersects
 
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle

public Circle(double x,
              double y,
              double r)
Constructor for objects of class Circle

Parameters:
x - x coordinate of center of circle
y - y coordinate of center of circle
r - radius of circle