Packagecom.degrafa.paint
Classpublic class GradientFillBase
InheritanceGradientFillBase Inheritance DegrafaObject
SubclassesGradientStrokeBase, LinearGradientFill, RadialGradientFill

The gradient fill class lets you specify a gradient fill. This is the base class for other gradient fill types.

Default MXML PropertygradientStops

See also

http://degrafa.com/samples/LinearGradientFill.html


Public Properties
 PropertyDefined by
  angle : Number
The angle that defines a transition across the context.
GradientFillBase
  blendMode : String
GradientFillBase
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
  focalPointRatio : Number
Sets the location of the start of a radial fill.
GradientFillBase
  gradientStops : Array
A array of gradient stops that describe this gradient.
GradientFillBase
  gradientStopsCollection : GradientStopsCollection
[read-only] Access to the Degrafa gradient stop collection object for this gradient.
GradientFillBase
  gradientType : String
Sets the type of gradient to be applied.
GradientFillBase
 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
  interpolationMethod : String
A value from the InterpolationMethod class that specifies which interpolation method to use.
GradientFillBase
 Inheritedname : String
The name that refers to this object.
DegrafaObject
  spreadMethod : String
A value from the SpreadMethod class that specifies which spread method to use.
GradientFillBase
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
  _alphas : Array
GradientFillBase
  _angle : Number
GradientFillBase
  _blendMode : String
GradientFillBase
  _colors : Array
GradientFillBase
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
  _focalPointRatio : Number
GradientFillBase
  _gradientStops : GradientStopsCollection
GradientFillBase
  _gradientType : String
GradientFillBase
  _interpolationMethod : String
GradientFillBase
  _ratios : Array
GradientFillBase
  _spreadMethod : String
GradientFillBase
Public Methods
 MethodDefined by
 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, rc:Rectangle):void
Begins the fill for the graphics context.
GradientFillBase
 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 fill for the graphics context.
GradientFillBase
 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
 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
Protected Methods
 MethodDefined by
  
processEntries(length:Number):void
Process the gradient stops
GradientFillBase
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
_alphasproperty
protected var _alphas:Array
_angleproperty 
protected var _angle:Number
angleproperty 
angle:Number  [read-write]

The angle that defines a transition across the context.

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

Implementation
    public function get angle():Number
    public function set angle(value:Number):void

See also

mx.graphics.LinearGradient
_blendModeproperty 
protected var _blendMode:String
blendModeproperty 
blendMode:String  [read-write]

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

Implementation
    public function get blendMode():String
    public function set blendMode(value:String):void
_colorsproperty 
protected var _colors:Array
_focalPointRatioproperty 
protected var _focalPointRatio:Number
focalPointRatioproperty 
focalPointRatio:Number  [read-write]

Sets the location of the start of a radial fill.

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

Implementation
    public function get focalPointRatio():Number
    public function set focalPointRatio(value:Number):void

See also

mx.graphics.RadialGradient
_gradientStopsproperty 
protected var _gradientStops:GradientStopsCollection
gradientStopsproperty 
gradientStops:Array  [read-write]

A array of gradient stops that describe this gradient.

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

Implementation
    public function get gradientStops():Array
    public function set gradientStops(value:Array):void
gradientStopsCollectionproperty 
gradientStopsCollection:GradientStopsCollection  [read-only]

Access to the Degrafa gradient stop collection object for this gradient.

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

Implementation
    public function get gradientStopsCollection():GradientStopsCollection
_gradientTypeproperty 
protected var _gradientType:String
gradientTypeproperty 
gradientType:String  [read-write]

Sets the type of gradient to be applied.

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

Implementation
    public function get gradientType():String
    public function set gradientType(value:String):void
_interpolationMethodproperty 
protected var _interpolationMethod:String
interpolationMethodproperty 
interpolationMethod:String  [read-write]

A value from the InterpolationMethod class that specifies which interpolation method to use.

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

Implementation
    public function get interpolationMethod():String
    public function set interpolationMethod(value:String):void

See also

mx.graphics.LinearGradient
_ratiosproperty 
protected var _ratios:Array
_spreadMethodproperty 
protected var _spreadMethod:String
spreadMethodproperty 
spreadMethod:String  [read-write]

A value from the SpreadMethod class that specifies which spread method to use.

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

Implementation
    public function get spreadMethod():String
    public function set spreadMethod(value:String):void

See also

mx.graphics.LinearGradient
Method detail
begin()method
public function begin(graphics:Graphics, rc:Rectangle):void

Begins the fill for the graphics context.

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

Ends the fill for the graphics context.

Parameters
graphics:Graphics — The current context being drawn to.
processEntries()method 
protected function processEntries(length:Number):void

Process the gradient stops

Parameters
length:Number