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

Package | org.apache.flex.svg
Class | public class LinearGradient
Inheritance | LinearGradient GradientBase Object
Implements | IFill

Public Properties
Hide Inherited Public Properties
Show Inherited 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
|  | scaleX : Number The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient | LinearGradient
|  | 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
Hide Inherited Protected Properties
Show Inherited 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

Public Methods

| Method | Defined By
--- | --- | ---
|  | begin(s:IGraphicShape, targetBounds:Rectangle, targetOrigin:Point):void | LinearGradient
|  | end(s:IGraphicShape):void | LinearGradient

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

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

Public Constants
Hide Inherited Public Constants
Show Inherited Public Constants

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

Property Detail

scaleX | property

`scaleX:Number`

The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient

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

begin | () | method

`public function begin(s:IGraphicShape, targetBounds:Rectangle, targetOrigin:Point):void`

Parameters

| `s:IGraphicShape`
| `targetBounds:Rectangle`
| `targetOrigin:Point`

end | () | method |

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

Parameters

| `s:IGraphicShape`

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