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

Package | org.apache.flex.graphics
Class | public class GradientBase
Inheritance | GradientBase Object
Subclasses | LinearGradient

Public Properties

| Property | Defined By
--- | --- | ---
|  | entries : Array An Array of GradientEntry objects defining the fill patterns for the gradient fill. | GradientBase
|  | newId : String [read-only] generate uid | GradientBase
|  | rotation : Number By default, the LinearGradientStroke defines a transition from left to right across the control. | GradientBase
|  | x : Number The distance by which to translate each point along the x axis. | GradientBase
|  | y : Number The distance by which to translate each point along the y axis. | GradientBase

Protected Properties

| Property | Defined By
--- | --- | ---
|  | alphas : Array | GradientBase
|  | colors : Array | GradientBase
|  | compoundTransform : CompoundTransform Holds the matrix and the convenience transform properties (x, y, and rotation). | GradientBase
|  | ratios : Array | GradientBase
|  | rotationInRadians : Number [read-only] | GradientBase

Protected Methods

| Method | Defined By
--- | --- | ---
|  | toRad(a:Number):Number | GradientBase

Public Constants

| Constant | Defined By
--- | --- | ---
|  | GRADIENT_DIMENSION : Number = 1638.4 [static] Value of the width and height of the untransformed gradient | GradientBase

Property Detail

alphas | property

`protected var alphas:Array`

colors | property |

`protected var colors:Array`

compoundTransform | property |

`protected var compoundTransform:CompoundTransform`

Language Version : | ActionScript 3.0

Runtime Versions : | Flash Player 9, AIR 1.1

Holds the matrix and the convenience transform properties (`x`, `y`, and `rotation`). The compoundTransform is only created when the `matrix` property is set.

entries | property |

`entries:Array`

An Array of GradientEntry objects defining the fill patterns for the gradient fill.

Implementation
`public function get entries():Array`
`public function set entries(value:Array):void`

newId | property |

`newId:String` [read-only]

generate uid

Implementation
`public function get newId():String`

ratios | property |

`protected var ratios:Array`

rotation | property |

`rotation:Number`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

By default, the LinearGradientStroke defines a transition from left to right across the control. Use the `rotation` property to control the transition direction. For example, a value of 180.0 causes the transition to occur from right to left, rather than from left to right.

The default value is `0.0`.

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

rotationInRadians | property |

`rotationInRadians:Number` [read-only]

Implementation
`protected function get rotationInRadians():Number`

x | property |

`x:Number`

The distance by which to translate each point along the x axis.

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

y | property |

`y:Number`

The distance by which to translate each point along the y axis.

Implementation
`public function get y():Number`
`public function set y(value:Number):void`
Method Detail

toRad | () | method

`protected function toRad(a:Number):Number`

Parameters

| `a:Number`

Returns

| `Number`

Constant Detail

GRADIENT_DIMENSION | Constant

`public static const GRADIENT_DIMENSION:Number = 1638.4`

Language Version : | ActionScript 3.0

Runtime Versions : | Flash Player 10, AIR 1.5

Value of the width and height of the untransformed gradient

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