Packageorg.cove.ape
Classpublic class AbstractItem
SubclassesAbstractConstraint, AbstractParticle

The base class for all constraints and particles



Public Properties
 PropertyDefined by
  alwaysRepaint : Boolean
For performance, fixed Particles and SpringConstraints don't have their paint() method called in order to avoid unnecessary redrawing.
AbstractItem
  sprite : Sprite
[read-only] Provides a Sprite to use as a container for drawing or adding children.
AbstractItem
  visible : Boolean
The visibility of the item.
AbstractItem
Public Methods
 MethodDefined by
  
AbstractItem
  
cleanup():void
This method is called automatically when an item's parent group is removed from the APEngine.
AbstractItem
  
init():void
This method is automatically called when an item's parent group is added to the engine, an item's Composite is added to a Group, or the item is added to a Composite or Group.
AbstractItem
  
paint():void
The default painting method for this item.
AbstractItem
  
setFill(color:uint = 0xffffff, alpha:Number = 1):void
Sets the style of the fill for this Item.
AbstractItem
  
setLine(thickness:Number = 0, color:uint = 0x000000, alpha:Number = 1):void
Sets the style of the line for this Item.
AbstractItem
  
setStyle(lineThickness:Number = 0, lineColor:uint = 0x000000, lineAlpha:Number = 1, fillColor:uint = 0xffffff, fillAlpha:Number = 1):void
Sets the line and fill of this Item.
AbstractItem
Property detail
alwaysRepaintproperty
alwaysRepaint:Boolean  [read-write]

For performance, fixed Particles and SpringConstraints don't have their paint() method called in order to avoid unnecessary redrawing. A SpringConstraint is considered fixed if its two connecting Particles are fixed. Setting this property to true forces paint() to be called if this Particle or SpringConstraint fixed property is true. If you are rotating a fixed Particle or SpringConstraint then you would set it's repaintFixed property to true. This property has no effect if a Particle or SpringConstraint is not fixed.

Implementation
    public function get alwaysRepaint():Boolean
    public function set alwaysRepaint(value:Boolean):void
spriteproperty 
sprite:Sprite  [read-only]

Provides a Sprite to use as a container for drawing or adding children. When the sprite is requested for the first time it is automatically added to the global container in the APEngine class.

Implementation
    public function get sprite():Sprite
visibleproperty 
visible:Boolean  [read-write]

The visibility of the item.

Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
Constructor detail
AbstractItem()constructor
public function AbstractItem()
Method detail
cleanup()method
public function cleanup():void

This method is called automatically when an item's parent group is removed from the APEngine.

init()method 
public function init():void

This method is automatically called when an item's parent group is added to the engine, an item's Composite is added to a Group, or the item is added to a Composite or Group.

paint()method 
public function paint():void

The default painting method for this item. This method is called automatically by the APEngine.paint() method.

setFill()method 
public function setFill(color:uint = 0xffffff, alpha:Number = 1):void

Sets the style of the fill for this Item.

Parameters
color:uint (default = 0xffffff)
 
alpha:Number (default = 1)
setLine()method 
public function setLine(thickness:Number = 0, color:uint = 0x000000, alpha:Number = 1):void

Sets the style of the line for this Item.

Parameters
thickness:Number (default = 0)
 
color:uint (default = 0x000000)
 
alpha:Number (default = 1)
setStyle()method 
public function setStyle(lineThickness:Number = 0, lineColor:uint = 0x000000, lineAlpha:Number = 1, fillColor:uint = 0xffffff, fillAlpha:Number = 1):void

Sets the line and fill of this Item.

Parameters
lineThickness:Number (default = 0)
 
lineColor:uint (default = 0x000000)
 
lineAlpha:Number (default = 1)
 
fillColor:uint (default = 0xffffff)
 
fillAlpha:Number (default = 1)