Packageedu.stanford.covertlab.graphics.shape
Classpublic class RegularPolygonShape
InheritanceRegularPolygonShape Inheritance PolygonShapeBase Inheritance ShapeBase Inheritance com.degrafa.GeometryGroup

Draws a regular polygon.



Public Properties
 PropertyDefined by
 InheritedfillColor : uint
ShapeBase
 Inheritedhash : Boolean
ShapeBase
 InheritedlabelOffsetX : Number = 0
ShapeBase
 InheritedlabelOffsetY : Number = 0
ShapeBase
 InheritedsolidColor : Boolean
ShapeBase
 InheritedstrokeColor : uint
ShapeBase
Protected Properties
 PropertyDefined by
 Inherited_fillColor : uint
ShapeBase
 Inherited_hash : Boolean = false
ShapeBase
 Inheritedsize : Number
ShapeBase
 Inherited_solidColor : Boolean = false
ShapeBase
 Inherited_strokeColor : uint
ShapeBase
 Inheritedtheta : Number
ShapeBase
Public Methods
 MethodDefined by
  
RegularPolygonShape(size:Number, strokeColor:uint, fillColor:uint, nsides:uint = 4, theta:Number = 0)
RegularPolygonShape
 Inherited
getPortBounds():Rectangle
ShapeBase
 Inherited
port(theta:Number, sense:Boolean):GraphicPoint
PolygonShapeBase
Protected Methods
 MethodDefined by
 Inherited
computeConvexPolygonPort(points:Array, theta:Number, sense:Boolean):GraphicPoint
ShapeBase
 Inherited
normalizeAngle(theta:Number):Number
ShapeBase
 Inherited
rectangleToPoints(rectangle:Rectangle):Array
ShapeBase
  
regularPolygonPoints(size:Number, nsides:uint, rotation:Number = 0):Array
RegularPolygonShape
Constructor detail
RegularPolygonShape()constructor
public function RegularPolygonShape(size:Number, strokeColor:uint, fillColor:uint, nsides:uint = 4, theta:Number = 0)Parameters
size:Number
 
strokeColor:uint
 
fillColor:uint
 
nsides:uint (default = 4)
 
theta:Number (default = 0)
Method detail
regularPolygonPoints()method
protected function regularPolygonPoints(size:Number, nsides:uint, rotation:Number = 0):ArrayParameters
size:Number
 
nsides:uint
 
rotation:Number (default = 0)

Returns
Array