org.apache.cocoon.samples.tour.shapes
Class Circle

java.lang.Object
  extended by org.apache.cocoon.samples.tour.shapes.Circle
All Implemented Interfaces:
Shape

public class Circle
extends Object
implements Shape

Circle Shape for tour block java-shapes sample


Constructor Summary
Circle(double r)
          Creates a new instance of Circle
 
Method Summary
 double getArea()
           
 String getName()
           
 double getPerimeter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle

public Circle(double r)
Creates a new instance of Circle

Method Detail

getName

public String getName()
Specified by:
getName in interface Shape

getArea

public double getArea()
Specified by:
getArea in interface Shape

getPerimeter

public double getPerimeter()
Specified by:
getPerimeter in interface Shape


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.