| Package | com.degrafa.paint |
| Class | public class GradientStop |
| Inheritance | GradientStop DegrafaObject |
See also
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
The transparency of a gradient fill.
| GradientStop | ||
| color : Object
The color value for a gradient stop.
| GradientStop | ||
![]() | document : Object
The MXML document that created this object.
| DegrafaObject | |
![]() | enableEvents : Boolean
Enable events for this object.
| DegrafaObject | |
![]() | 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 | |
| measure : Measure
[read-only]
Returns the current ratio unit value.
| GradientStop | ||
![]() | name : String
The name that refers to this object.
| DegrafaObject | |
| ratio : Number
Where in the graphical element, as a percentage from 0.0 to 1.0,
Flex starts the transition to the associated color.
| GradientStop | ||
| ratioUnit : String
Unit of measure for the ratio of the stop.
| GradientStop | ||
![]() | suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
| DegrafaObject | |
| Method | Defined by | ||
|---|---|---|---|
|
GradientStop(color:Object = 0x000000, alpha:Number = 1, ratio:Number = -1, ratioUnit:String = "ratio")
Constructor.
| GradientStop | ||
![]() |
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 | |
![]() |
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 | |
![]() |
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 | |
| alpha | property |
alpha:Number [read-write]The transparency of a gradient fill.
This property can be used as the source for data binding.
Implementation public function get alpha():Number
public function set alpha(value:Number):void
See also
| color | property |
color:Object [read-write]The color value for a gradient stop.
This property can be used as the source for data binding.
Implementation public function get color():Object
public function set color(value:Object):void
See also
| measure | property |
measure:Measure [read-only]Returns the current ratio unit value.
This property can be used as the source for data binding.
Implementation public function get measure():Measure
| ratio | property |
ratio:Number [read-write]Where in the graphical element, as a percentage from 0.0 to 1.0, Flex starts the transition to the associated color.
This property can be used as the source for data binding.
Implementation public function get ratio():Number
public function set ratio(value:Number):void
See also
| ratioUnit | property |
ratioUnit:String [read-write]Unit of measure for the ratio of the stop.
This property can be used as the source for data binding.
Implementation public function get ratioUnit():String
public function set ratioUnit(value:String):void
| GradientStop | () | constructor |
public function GradientStop(color:Object = 0x000000, alpha:Number = 1, ratio:Number = -1, ratioUnit:String = "ratio")Constructor.
The solid stroke constructor accepts 3 optional arguments that define it's rendering color, alpha and weight.
Parameterscolor:Object (default = 0x000000) — A unit value indicating the stop color.
|
|
alpha:Number (default = 1) — A number indicating the alpha to be used for the stop.
|
|
ratio:Number (default = -1) — A number indicating where in the graphical element, as a percentage from 0.0 to 1.0, Flex starts the transition to the associated color.
|
|
ratioUnit:String (default = "ratio") — A string indicating the unit of the ratio for the stop.
|