| Package | com.degrafa.paint |
| Class | public class GradientFillBase |
| Inheritance | GradientFillBase DegrafaObject |
| Implements | ITransformablePaint |
| 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 | ||
| coordinateType : 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 | ||
![]() | isInitialized : 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 | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
![]() | objectBindings : Array | DegrafaObject | |
![]() | parent : 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 | ||
![]() | suppressEventProcessing : 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 | ||
| Property | Defined by | ||
|---|---|---|---|
| _alphas : Array | GradientFillBase | ||
| _angle : Number | GradientFillBase | ||
| _blendMode : String | GradientFillBase | ||
| _colors : Array | GradientFillBase | ||
| _coordType : String = "absolute" | GradientFillBase | ||
![]() | eventDispatcher : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
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 | ||
![]() |
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
| coordinateType | property |
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
| _coordType | property |
protected var _coordType:String = "absolute"
| _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
| lastArgs | property |
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
| lastRectangle | property |
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
| _ratios | property |
protected var _ratios:Array
| _requester | property |
protected var _requester:IGeometryComposition
| requester | property |
requester:IGeometryComposition [write-only]This property can be used as the source for data binding.
Implementation public function set requester(value:IGeometryComposition):void
| restartFunction | property |
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
| _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
| _transform | property |
protected var _transform:ITransform
| transform | property |
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
| 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 |