| Pacote | mx.graphics |
| Classe | public class GradientBase |
| Herança | GradientBase EventDispatcher Object |
| Subclasses | GradientStroke, LinearGradient, RadialGradient |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Propriedade MXML padrãoentries
| Propriedade | Definido por | ||
|---|---|---|---|
| angle : Number Deprecado: Use rotation
By default, the LinearGradientStroke defines a transition
from left to right across the control. | GradientBase | ||
![]() | constructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | Object | |
| entries : Array
An Array of GradientEntry objects
defining the fill patterns for the gradient fill. | GradientBase | ||
| interpolationMethod : String
A value from the InterpolationMethod class
that specifies which interpolation method to use. | GradientBase | ||
| matrix : Matrix
An array of values used for matrix transformation. | GradientBase | ||
| rotation : Number
By default, the LinearGradientStroke defines a transition
from left to right across the control. | GradientBase | ||
| spreadMethod : String
A value from the SpreadMethod class
that specifies which spread method to use. | 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 | ||
| Propriedade | Definido por | ||
|---|---|---|---|
| compoundTransform : mx.geom:CompoundTransform
Holds the matrix and the convenience transform properties (x, y, and rotation). | GradientBase | ||
| Método | Definido por | ||
|---|---|---|---|
Constructor. | GradientBase | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento. | EventDispatcher | |
![]() |
Envia um evento para o fluxo de eventos. | EventDispatcher | |
![]() |
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento. | EventDispatcher | |
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Remove um ouvinte do objeto EventDispatcher. | EventDispatcher | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
![]() |
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado. | EventDispatcher | |
| Constante | Definido por | ||
|---|---|---|---|
| GRADIENT_DIMENSION : Number = 1638.4 [estático]
Value of the width and height of the untransformed gradient
| GradientBase | ||
angle | propriedade |
angle:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
By default, the LinearGradientStroke defines a transition
from left to right across the control.
Use the angle 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.
O valor padrão é 0.0.
Implementação
public function get angle():Number public function set angle(value:Number):voidcompoundTransform | propriedade |
protected var compoundTransform:mx.geom:CompoundTransform| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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 | propriedade |
entries:Array| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
O valor padrão é [].
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get entries():Array public function set entries(value:Array):voidinterpolationMethod | propriedade |
interpolationMethod:String| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A value from the InterpolationMethod class that specifies which interpolation method to use.
Valid values are InterpolationMethod.LINEAR_RGB
and InterpolationMethod.RGB.
O valor padrão é InterpolationMethod.RGB.
Implementação
public function get interpolationMethod():String public function set interpolationMethod(value:String):voidmatrix | propriedade |
matrix:Matrix| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
An array of values used for matrix transformation.
The gradient scaleX and scaleY properties represent pixels while the Matrix scale properties represent multipliers.
Thus they are not compatible.
Another difference is the most of the transform properties (x, y, scaleX, and scaleY)
support NaN values while the matrix does not. A NaN value means that the gradient will choose an appropriate value.
The scaleX and scaleY properties can not be represented by the matrix.
Once the matrix is set, scaleX and scaleY can no longer be set.
Also, x and y can not be set to NaN.
The matrix can be set back to null which also resets all of the convenience transform properties back to their default values.
If the matrix is set, then the gradient draw logic will scale the gradient to fit the bounds of the graphic element. It will then position the gradient in the upper left corner of the graphic element. Finally, it will apply the matrix transformations.
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.
O valor padrão é null.
Implementação
public function get matrix():Matrix public function set matrix(value:Matrix):voidrotation | propriedade |
rotation:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | 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.
O valor padrão é 0.0.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get rotation():Number public function set rotation(value:Number):voidspreadMethod | propriedade |
spreadMethod:String| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
A value from the SpreadMethod class that specifies which spread method to use.
Valid values are SpreadMethod.PAD,
SpreadMethod.REFLECT,
and SpreadMethod.REPEAT.
O valor padrão é SpreadMethod.PAD.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get spreadMethod():String public function set spreadMethod(value:String):voidx | propriedade |
x:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the x axis.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get x():Number public function set x(value:Number):voidy | propriedade |
y:Number| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the y axis.
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get y():Number public function set y(value:Number):voidGradientBase | () | Construtor |
public function GradientBase()| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor.
GRADIENT_DIMENSION | Constante |
public static const GRADIENT_DIMENSION:Number = 1638.4| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 4 |
| Versões de runtime: | Flash Player 10, AIR 1.5 |
Value of the width and height of the untransformed gradient
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas