com.planeth.common.geom
Class RegularPolygon

java.lang.Object
  extended bycom.planeth.common.geom.Shape
      extended bycom.planeth.common.geom.Ellipse
          extended bycom.planeth.common.geom.RegularPolygon

public class RegularPolygon
extends Ellipse

A RegularPolygon shape with a variable number of vertexes

Author:
Andreas Grässer, gal@planet-h.com
created 26.12.2005

Nested Class Summary
 
Nested classes inherited from class com.planeth.common.geom.Shape
Shape.Bounds
 
Constructor Summary
RegularPolygon(double size, int nrOfVertexes)
          Constructor for RegularPolygon.
 
Methods inherited from class com.planeth.common.geom.Shape
explode, getBounds, getColor, getVertexes, paint, randomize, setColor, setFilled, setVertexes, setVisible, split
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularPolygon

public RegularPolygon(double size,
                      int nrOfVertexes)
Constructor for RegularPolygon.

Parameters:
size - the size of the RegularPolygon
nrOfVertexes - the number of vertexes for the RegularPolygon