Packagecom.degrafa.paint
Classpublic class ComplexFill
InheritanceComplexFill Inheritance DegrafaObject
ImplementsIBlend, IGraphicsFill

Used to render multiple, layered IFill objects as a single fill. This allows complex background graphics to be rendered with a single drawing pass.

Default MXML Propertyfills



Public Properties
 PropertyDefined by
  blendMode : String
ComplexFill
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
  fills : Array
Array of IFill Objects to be rendered
ComplexFill
 InheritedhasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
DegrafaObject
 Inheritedid : String
The identifier used by document to refer to this object.
DegrafaObject
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
ComplexFill(fills:Array = null)
ComplexFill
  
add(value:IFill, target:ComplexFill):void
[static] Combines an IFill object with the target ComplexFill, merging ComplexFills if necessary.
ComplexFill
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
  
begin(graphics:Graphics, rectangle:Rectangle):void
ComplexFill
 Inherited
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
DegrafaObject
 Inherited
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
DegrafaObject
  
end(graphics:Graphics):void
ComplexFill
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
DegrafaObject
 Inherited
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
DegrafaObject
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
DegrafaObject
  
refresh():void
ComplexFill
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
DegrafaObject
 Inherited
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
DegrafaObject
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
blendModeproperty
blendMode:String  [read-write]Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void
fillsproperty 
fills:Array  [read-write]

Array of IFill Objects to be rendered

Implementation
    public function get fills():Array
    public function set fills(value:Array):void
Constructor detail
ComplexFill()constructor
public function ComplexFill(fills:Array = null)Parameters
fills:Array (default = null)
Method detail
add()method
public static function add(value:IFill, target:ComplexFill):void

Combines an IFill object with the target ComplexFill, merging ComplexFills if necessary.

Parameters
value:IFill
 
target:ComplexFill
begin()method 
public function begin(graphics:Graphics, rectangle:Rectangle):voidParameters
graphics:Graphics
 
rectangle:Rectangle
end()method 
public function end(graphics:Graphics):voidParameters
graphics:Graphics
refresh()method 
public function refresh():void