Packageedu.stanford.covertlab.graphics.renderablerepeater
Classpublic class MembranePhospholipids
InheritanceMembranePhospholipids Inheritance RenderableRepeater Inheritance com.degrafa.geometry.repeaters.Repeater

Draws a curved phospholipid membrane with phospholipid heads and tails. Used by the compartment class.

See also

covertlab.stanford.edu.diagram.core.Compartment


Public Properties
 PropertyDefined by
  bounds : Rectangle
[read-only] The tight bounds of this element as represented by a Rectangle object.
MembranePhospholipids
  membraneCurvature : Number
MembranePhospholipids
  membraneHeight : Number
MembranePhospholipids
  membraneWidth : Number
MembranePhospholipids
  phospholipidHeadSize : Number
MembranePhospholipids
  phospholipidLayers : Number
MembranePhospholipids
  phospholipidTailGap : Number
MembranePhospholipids
Protected Properties
 PropertyDefined by
 InheritedobjectStack : Array
An Array of geometry objects that make up this repeater.
RenderableRepeater
Public Methods
 MethodDefined by
  
MembranePhospholipids(membraneWidth:Number = 800, membraneHeight:Number = 25, membraneCurvature:Number = 25, phospholipidHeadSize:Number = 5, phospholipidLayers:Number = 2, phospholipidTailGap:Number = 3)
MembranePhospholipids
  
draw(graphics:Graphics, rc:Rectangle):void
Begins the draw phase for geometry objects.
MembranePhospholipids
 Inherited
RenderableRepeater
  
preDraw():void
MembranePhospholipids
Property detail
boundsproperty
bounds:Rectangle  [read-only]

The tight bounds of this element as represented by a Rectangle object.

This property can be used as the source for data binding.

Implementation
    public function get bounds():Rectangle
membraneCurvatureproperty 
membraneCurvature:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get membraneCurvature():Number
    public function set membraneCurvature(value:Number):void
membraneHeightproperty 
membraneHeight:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get membraneHeight():Number
    public function set membraneHeight(value:Number):void
membraneWidthproperty 
membraneWidth:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get membraneWidth():Number
    public function set membraneWidth(value:Number):void
phospholipidHeadSizeproperty 
phospholipidHeadSize:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get phospholipidHeadSize():Number
    public function set phospholipidHeadSize(value:Number):void
phospholipidLayersproperty 
phospholipidLayers:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get phospholipidLayers():Number
    public function set phospholipidLayers(value:Number):void
phospholipidTailGapproperty 
phospholipidTailGap:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get phospholipidTailGap():Number
    public function set phospholipidTailGap(value:Number):void
Constructor detail
MembranePhospholipids()constructor
public function MembranePhospholipids(membraneWidth:Number = 800, membraneHeight:Number = 25, membraneCurvature:Number = 25, phospholipidHeadSize:Number = 5, phospholipidLayers:Number = 2, phospholipidTailGap:Number = 3)Parameters
membraneWidth:Number (default = 800)
 
membraneHeight:Number (default = 25)
 
membraneCurvature:Number (default = 25)
 
phospholipidHeadSize:Number (default = 5)
 
phospholipidLayers:Number (default = 2)
 
phospholipidTailGap:Number (default = 3)
Method detail
draw()method
public override function draw(graphics:Graphics, rc:Rectangle):void

Begins the draw phase for geometry objects. All geometry objects override this to do their specific rendering.

Parameters
graphics:Graphics — The current context to draw to.
 
rc:Rectangle — A Rectangle object used for fill bounds.
preDraw()method 
public override function preDraw():void