Packageidv.cjcat.stardust.twoD.handlers
Classpublic class PixelHandler
InheritancePixelHandler Inheritance ParticleHandler Inheritance StardustElement

This handler draws pixels into a BitmapData object according to the color property of Particle objects.



Public Properties
 PropertyDefined by
 Inheritedname : String
StardustElement
  targetBitmapData : BitmapData
The target bitmap to draw display object into.
PixelHandler
Public Methods
 MethodDefined by
  
PixelHandler(targetBitmapData:BitmapData = null)
PixelHandler
 Inherited
ParticleHandler
 Inherited
[Abstract Method] Returns the related objects of the element.
StardustElement
 Inherited
[static]
ParticleHandler
 Inherited
getXMLTag():XML
Returns the root tag of the XML representation.
StardustElement
  
getXMLTagName():String
PixelHandler
 Inherited
parseXML(xml:XML, builder:XMLBuilder = null):void
[Abstract Method] Reconstructs the element from XML representations.
StardustElement
 Inherited
particleAdded(particle:Particle):void
[Abstract Method] Invoked for each particle added.
ParticleHandler
 Inherited
particleRemoved(particle:Particle):void
[Abstract Method] Invoked for each particle removed.
ParticleHandler
  
readParticle(particle:Particle):void
PixelHandler
 Inherited
stepBegin(emitter:Emitter, particles:ParticleCollection, time:Number):void
[Abstract Method] Invoked when each emitter step begins.
ParticleHandler
 Inherited
stepEnd(emitter:Emitter, particles:ParticleCollection, time:Number):void
[Abstract Method] Invoked when each emitter step ends.
ParticleHandler
 Inherited
toXML():XML
[Abstract Method] Generates XML representation.
StardustElement
Property detail
targetBitmapDataproperty
public var targetBitmapData:BitmapData

The target bitmap to draw display object into.

Constructor detail
PixelHandler()constructor
public function PixelHandler(targetBitmapData:BitmapData = null)Parameters
targetBitmapData:BitmapData (default = null)
Method detail
getXMLTagName()method
public override function getXMLTagName():String

Returns
String
readParticle()method 
public override function readParticle(particle:Particle):voidParameters
particle:Particle