Packageedu.stanford.covertlab.graphics.shape
Classpublic class RectangleShape
InheritanceRectangleShape Inheritance ShapeBase Inheritance com.degrafa.GeometryGroup

Draws a rectangle or rounded rectangle.



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
  
RectangleShape(size:Number, strokeColor:uint, fillColor:uint, rounded:Boolean = false)
RectangleShape
 Inherited
getPortBounds():Rectangle
ShapeBase
  
port(theta:Number, sense:Boolean):GraphicPoint
RectangleShape
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
RectangleShape()constructor
public function RectangleShape(size:Number, strokeColor:uint, fillColor:uint, rounded:Boolean = false)Parameters
size:Number
 
strokeColor:uint
 
fillColor:uint
 
rounded:Boolean (default = false)
Method detail
port()method
public override function port(theta:Number, sense:Boolean):GraphicPointParameters
theta:Number
 
sense:Boolean

Returns
GraphicPoint