Packagecom.degrafa.paint
Classpublic class GradientStop
InheritanceGradientStop Inheritance DegrafaObject

The gradient stop class defines the objects that control a transition as part of a gradient fill.

See also

mx.graphics.GradientEntry


Public Properties
 PropertyDefined by
  alpha : Number
The transparency of a gradient fill.
GradientStop
  color : Object
The color value for a gradient stop.
GradientStop
 Inheriteddocument : Object
The MXML document that created this object.
DegrafaObject
 InheritedenableEvents : Boolean
Enable events for this object.
DegrafaObject
 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
  measure : Measure
[read-only] Returns the current ratio unit value.
GradientStop
 Inheritedname : 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
 InheritedsuppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
DegrafaObject
Protected Properties
 PropertyDefined by
 InheritedeventDispatcher : EventDispatcher
EventDispatcher instance for this object.
DegrafaObject
Public Methods
 MethodDefined by
  
GradientStop(color:Object = 0x000000, alpha:Number = 1, ratio:Number = -1, ratioUnit:String = "ratio")
Constructor.
GradientStop
 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
 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
 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
Events
 EventSummaryDefined by
 Inherited  DegrafaObject
 Inherited  DegrafaObject
Property detail
alphaproperty
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

mx.graphics.GradientEntry
colorproperty 
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

mx.graphics.GradientEntry
measureproperty 
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
ratioproperty 
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

mx.graphics.GradientEntry
ratioUnitproperty 
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
Constructor detail
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.

Parameters
color: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.