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

Used to render multiple, layered IGraphicsFill 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
Blend mode effect to use for this fill.
ComplexFill
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
  fills : Array
Array of IGraphicsFill 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
 InheritedisInitialized : Boolean
DegrafaObject
  lastArgs : Array
[read-only] Provide access to the lastArgs array
ComplexFill
  lastRectangle : Rectangle
[read-only] Provides access to the last rectangle that was relevant for this fill.
ComplexFill
 Inheritedname : String
The name that refers to this object.
DegrafaObject
 InheritedobjectBindings : Array
DegrafaObject
 Inheritedparent : IDegrafaObject
The current degrafa object parent.
DegrafaObject
  requester : IGeometryComposition
[write-only] Reference to the requesting geometry.
ComplexFill
  restartFunction : Function
[read-only] Provides quick access to a cached function for restarting the last used fill either in the last used context, or, if a context is provided as an argument, then to an alternate context.
ComplexFill
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
  transform : ITransform
Defines the transform object that will be used for altering this gradientfill object.
ComplexFill
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
  _transform : ITransform
ComplexFill
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 = true):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
DegrafaObject
  
begin(graphics:Graphics, rc:Rectangle):void
Begins the complex fill.
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
Ends the complex fill.
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
Refreshs the complex fill.
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]

Blend mode effect to use for this fill. You may use any constant provided in the flash.display.BlendMode class.

Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void
fillsproperty 
fills:Array  [read-write]

Array of IGraphicsFill Objects to be rendered

Implementation
    public function get fills():Array
    public function set fills(value:Array):void
lastArgsproperty 
lastArgs:Array  [read-only]

Provide access to the lastArgs array

Implementation
    public function get lastArgs():Array
lastRectangleproperty 
lastRectangle:Rectangle  [read-only]

Provides access to the last rectangle that was relevant for this fill.

Implementation
    public function get lastRectangle():Rectangle
requesterproperty 
requester:IGeometryComposition  [write-only]

Reference to the requesting geometry.

Implementation
    public function set requester(value:IGeometryComposition):void
restartFunctionproperty 
restartFunction:Function  [read-only]

Provides quick access to a cached function for restarting the last used fill either in the last used context, or, if a context is provided as an argument, then to an alternate context. If no last used context is available then this will do nothing;

Implementation
    public function get restartFunction():Function
_transformproperty 
protected var _transform:ITransform
transformproperty 
transform:ITransform  [read-write]

Defines the transform object that will be used for altering this gradientfill object.

Implementation
    public function get transform():ITransform
    public function set transform(value:ITransform):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, rc:Rectangle):void

Begins the complex fill.

Parameters
graphics:Graphics
 
rc:Rectangle
end()method 
public function end(graphics:Graphics):void

Ends the complex fill.

Parameters
graphics:Graphics
refresh()method 
public function refresh():void

Refreshs the complex fill.