Packageedu.stanford.covertlab.graphics.shape
Classpublic class PolygonShapeBase
InheritancePolygonShapeBase Inheritance ShapeBase Inheritance com.degrafa.GeometryGroup
SubclassesHouseShape, ParallelogramShape, RegularPolygonShape, TrapeziumShape

Base class for convex polygon shapes. Overrides base shape port function.

See also

HouseShape
ParallelogramShape
RegularPolygonShape
RectangleShape
TrapeziumShape


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
  
PolygonShapeBase(size:Number, points:Array, strokeColor:uint, fillColor:uint, theta:Number)
PolygonShapeBase
 Inherited
getPortBounds():Rectangle
ShapeBase
  
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
Constructor detail
PolygonShapeBase()constructor
public function PolygonShapeBase(size:Number, points:Array, strokeColor:uint, fillColor:uint, theta:Number)Parameters
size:Number
 
points:Array
 
strokeColor:uint
 
fillColor:uint
 
theta:Number
Method detail
port()method
public override function port(theta:Number, sense:Boolean):GraphicPointParameters
theta:Number
 
sense:Boolean

Returns
GraphicPoint