Class Hole

java.lang.Object
  |
  +--Hole

public class Hole
extends java.lang.Object

Copyright (c) Amish Parkh November 2001 Hole.java: The Hole class includes the protected variables for representing position of the center of the hole, ,the radius of the hole. The Hole class includes basic methods: getX,setX,getY setY, getRadius,setRadius.


Field Summary
protected  double radius
           
protected  double x
           
protected  double y
           
 
Constructor Summary
Hole(double x, double y, double radius)
          Constructor with three arguements, x coordinate, y coordinate and radius of hole
 
Method Summary
 double getRadius()
          get radius of hole
 double getX()
          get x coordinate of hole
 double getY()
          get y coordinate of hole
 void setRadius(double radius)
          set radius of hole
 void setX(double x)
          set x coordinate of hole
 void setY(double y)
          set y coordinate of hole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

protected double x

y

protected double y

radius

protected double radius
Constructor Detail

Hole

public Hole(double x,
            double y,
            double radius)
Constructor with three arguements, x coordinate, y coordinate and radius of hole
Method Detail

setX

public void setX(double x)
set x coordinate of hole

getX

public double getX()
get x coordinate of hole

setY

public void setY(double y)
set y coordinate of hole

getY

public double getY()
get y coordinate of hole

getRadius

public double getRadius()
get radius of hole

setRadius

public void setRadius(double radius)
set radius of hole