Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
GradientEntry

Package | org.apache.flex.graphics
Class | public class GradientEntry
Inheritance | GradientEntry Object

Public Properties

| Property | Defined By
--- | --- | ---
|  | alpha : Number The transparency of a color. | GradientEntry
|  | color : uint A color value. | GradientEntry
|  | ratio : Number Where in the graphical element, as a percentage from 0.0 to 1.0, Flex samples the associated color at 100%. | GradientEntry

Public Methods

| Method | Defined By
--- | --- | ---
|  | GradientEntry(alpha:Number = 1.0, color:uint = 0x000000, ratio:Number = 1.0) | GradientEntry
|  | begin(s:IGraphicShape):void Begin drawing the fill on the given shape's graphic object | GradientEntry
|  | end(s:IGraphicShape):void End the fill | GradientEntry

Property Detail

alpha | property

`alpha:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 10.2, AIR 2.6

The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).

The default value is `1.0`.

Implementation
`public function get alpha():Number`
`public function set alpha(value:Number):void`

color | property |

`color:uint`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 9, AIR 1.1

A color value.

Implementation
`public function get color():uint`
`public function set color(value:uint):void`

ratio | property |

`ratio:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 9, AIR 1.1

Where in the graphical element, as a percentage from 0.0 to 1.0, Flex samples the associated color at 100%.

Implementation
`public function get ratio():Number`
`public function set ratio(value:Number):void`
Constructor Detail

GradientEntry | () | Constructor

`public function GradientEntry(alpha:Number = 1.0, color:uint = 0x000000, ratio:Number = 1.0)`

Parameters

| `alpha:Number` (default = `1.0`)``
| `color:uint` (default = `0x000000`)``
| `ratio:Number` (default = `1.0`)``

Method Detail

begin | () | method

`public function begin(s:IGraphicShape):void`

Begin drawing the fill on the given shape's graphic object

Parameters

| `s:IGraphicShape`

end | () | method |

`public function end(s:IGraphicShape):void`

End the fill

Parameters

| `s:IGraphicShape`

Mon Sep 5 2016, 07:19 AM -07:00