Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

CircleCell (Lab1)

Class CircleCell

java.lang.Object
  |
  +--Cell
        |
        +--CircleCell

public class CircleCell
extends Cell

A CircleCell.

Version:
1.0 (2002)
Author:
CPwJ

Constructor Summary
CircleCell(double x, double y, double r)
          CircleCell constructor
 
Method Summary
 double area()
          Calculate the area of a Circle shape Cell
 
Methods inherited from class Cell
coverage, distance, getR, getX, getY, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CircleCell

public CircleCell(double x,
                  double y,
                  double r)
CircleCell constructor

Parameters:
x - Cell X coordinate
y - Cell Y coordinate
r - Cell Radius
Method Detail

area

public double area()
Calculate the area of a Circle shape Cell

Specified by:
area in class Cell
Returns:
the area of the Circle Cell


Generated by BlueJ