Packagecom.degrafa.paint
Classpublic class GradientFillBase
InheritanceGradientFillBase Inheritance DegrafaObject
ImplementsITransformablePaint
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
  coordinateType : 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
 InheritedisInitialized : Boolean
DegrafaObject
  lastArgs : Array
[read-only] Provide access to the lastArgs array
GradientFillBase
  lastRectangle : Rectangle
[read-only] Provides access to the last rectangle that was relevant for this fill.
GradientFillBase
 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]
GradientFillBase
  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.
GradientFillBase
  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
  transform : ITransform
Defines the transform object that will be used for altering this gradientfill object.
GradientFillBase
Protected Properties
 PropertyDefined by
  _alphas : Array
GradientFillBase
  _angle : Number
GradientFillBase
  _blendMode : String
GradientFillBase
  _colors : Array
GradientFillBase
  _coordType : String = "absolute"
GradientFillBase
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
  _focalPointRatio : Number
GradientFillBase
  _gradientStops : GradientStopsCollection
GradientFillBase
  _gradientType : String
GradientFillBase
  _interpolationMethod : String
GradientFillBase
  _ratios : Array
GradientFillBase
  _requester : IGeometryComposition
GradientFillBase
  _spreadMethod : String
GradientFillBase
  _transform : ITransform
GradientFillBase
Public Methods
 MethodDefined by
 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 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
coordinateTypeproperty 
coordinateType:String  [read-write]

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

Implementation
    public function get coordinateType():String
    public function set coordinateType(value:String):void
_coordTypeproperty 
protected var _coordType:String = "absolute"
_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
lastArgsproperty 
lastArgs:Array  [read-only]

Provide access to the lastArgs array

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

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

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

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

Implementation
    public function get lastRectangle():Rectangle
_ratiosproperty 
protected var _ratios:Array
_requesterproperty 
protected var _requester:IGeometryComposition
requesterproperty 
requester:IGeometryComposition  [write-only]

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

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;

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

Implementation
    public function get restartFunction():Function
_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
_transformproperty 
protected var _transform:ITransform
transformproperty 
transform:ITransform  [read-write]

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

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

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