Packagecom.degrafa.paint
Classpublic class RadialGradientFill
InheritanceRadialGradientFill Inheritance GradientFillBase Inheritance DegrafaObject
ImplementsIGraphicsFill

The radial gradient fill class lets you specify a gradient fill that radiates out from the center of a graphical element.

See also

mx.graphics.RadialGradient
http://samples.degrafa.com/RadialGradientFill/RadialGradientFill.html


Public Properties
 PropertyDefined by
 Inheritedangle : Number
The angle that defines a transition across the context.
GradientFillBase
 InheritedblendMode : String
GradientFillBase
  cx : Number
The x-axis coordinate of the center of the gradient rectangle.
RadialGradientFill
  cy : Number
The y-axis coordinate of the center of the gradient rectangle.
RadialGradientFill
  derive : RadialGradientFill
[write-only] An object to derive this objects properties from.
RadialGradientFill
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 InheritedfocalPointRatio : Number
Sets the location of the start of a radial fill.
GradientFillBase
 InheritedgradientStops : Array
A array of gradient stops that describe this gradient.
GradientFillBase
 InheritedgradientStopsCollection : GradientStopsCollection
Access to the Degrafa gradient stop collection object for this gradient.
GradientFillBase
 InheritedgradientType : 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
 InheritedinterpolationMethod : 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
  radius : Number
The radius of the gradient fill.
RadialGradientFill
 InheritedspreadMethod : 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
 Inherited_alphas : Array
GradientFillBase
 Inherited_angle : Number
GradientFillBase
 Inherited_blendMode : String
GradientFillBase
 Inherited_colors : Array
GradientFillBase
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
 Inherited_focalPointRatio : Number
GradientFillBase
 Inherited_gradientStops : GradientStopsCollection
GradientFillBase
 Inherited_gradientType : String
GradientFillBase
 Inherited_interpolationMethod : String
GradientFillBase
 Inherited_ratios : Array
GradientFillBase
 Inherited_spreadMethod : String
GradientFillBase
Public Methods
 MethodDefined by
  
RadialGradientFill
 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.
RadialGradientFill
 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.
RadialGradientFill
 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
 Inherited
processEntries(length:Number):void
Process the gradient stops
GradientFillBase
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
cxproperty
cx:Number  [read-write]

The x-axis coordinate of the center of the gradient rectangle. If not specified a default value of 0 is used.

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

Implementation
    public function get cx():Number
    public function set cx(value:Number):void
cyproperty 
cy:Number  [read-write]

The y-axis coordinate of the center of the gradient rectangle. If not specified a default value of 0 is used.

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

Implementation
    public function get cy():Number
    public function set cy(value:Number):void
deriveproperty 
derive:RadialGradientFill  [write-only]

An object to derive this objects properties from. When specified this object will derive it's unspecified properties from the passed object.

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

Implementation
    public function set derive(value:RadialGradientFill):void
radiusproperty 
radius:Number  [read-write]

The radius of the gradient fill. If not specified a default value of 0 is used.

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

Implementation
    public function get radius():Number
    public function set radius(value:Number):void
Constructor detail
RadialGradientFill()constructor
public function RadialGradientFill()
Method detail
begin()method
public override 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 override function end(graphics:Graphics):void

Ends the fill for the graphics context.

Parameters
graphics:Graphics — The current context being drawn to.