| Package | com.degrafa.paint |
| Class | public class GradientFillBase |
| Inheritance | GradientFillBase DegrafaObject |
| Subclasses | GradientStrokeBase, LinearGradientFill, RadialGradientFill |
Default MXML PropertygradientStops
See also
| Property | Defined by | ||
|---|---|---|---|
| angle : Number
The angle that defines a transition across the context.
| GradientFillBase | ||
| blendMode : String | GradientFillBase | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : 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 | ||
![]() | hasEventManager : Boolean
Tests to see if a EventDispatcher instance has been created for this object.
| DegrafaObject | |
![]() | id : 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 | ||
![]() | name : 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 | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| Property | Defined by | ||
|---|---|---|---|
| _alphas : Array | GradientFillBase | ||
| _angle : Number | GradientFillBase | ||
| _blendMode : String | GradientFillBase | ||
| _colors : Array | GradientFillBase | ||
![]() | eventDispatcher : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | ||
![]() |
dispatchEvent(evt:Event):Boolean
Dispatches an event into the event flow.
| DegrafaObject | |
![]() |
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 | ||
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| DegrafaObject | |
![]() |
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
| DegrafaObject | |
![]() |
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 | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| DegrafaObject | |
![]() |
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 | |
| Method | Defined by | ||
|---|---|---|---|
|
processEntries(length:Number):void
Process the gradient stops
| GradientFillBase | ||
| _alphas | property |
protected var _alphas:Array
| _angle | property |
protected var _angle:Number
| angle | property |
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
| _blendMode | property |
protected var _blendMode:String
| blendMode | property |
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
| _colors | property |
protected var _colors:Array
| _focalPointRatio | property |
protected var _focalPointRatio:Number
| focalPointRatio | property |
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
| _gradientStops | property |
protected var _gradientStops:GradientStopsCollection
| gradientStops | property |
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
| gradientStopsCollection | property |
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
| _gradientType | property |
protected var _gradientType:String
| gradientType | property |
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
| _interpolationMethod | property |
protected var _interpolationMethod:String
| interpolationMethod | property |
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
| _ratios | property |
protected var _ratios:Array
| _spreadMethod | property |
protected var _spreadMethod:String
| spreadMethod | property |
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
| begin | () | method |
public function begin(graphics:Graphics, rc:Rectangle):voidBegins the fill for the graphics context.
Parametersgraphics:Graphics — The current context to draw to.
|
|
rc:Rectangle — A Rectangle object used for fill bounds.
|
| end | () | method |
public function end(graphics:Graphics):voidEnds the fill for the graphics context.
Parametersgraphics:Graphics — The current context being drawn to.
|
| processEntries | () | method |
protected function processEntries(length:Number):voidProcess the gradient stops
Parameterslength:Number |