| Pakket | mx.graphics |
| Klasse | public class GradientBase |
| Overerving | GradientBase EventDispatcher Object |
| Subklassen | GradientStroke, LinearGradient, RadialGradient |
| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
Standaard-MXML-eigenschapentries
| Eigenschap | Gedefinieerd door | ||
|---|---|---|---|
| angle : Number Vervangen: Gebruik rotation
By default, the LinearGradientStroke defines a transition
from left to right across the control. | GradientBase | ||
![]() | constructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie. | 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 | ||
| Eigenschap | Gedefinieerd door | ||
|---|---|---|---|
| compoundTransform : mx.geom:CompoundTransform
Holds the matrix and the convenience transform properties (x, y, and rotation). | GradientBase | ||
| Methode | Gedefinieerd door | ||
|---|---|---|---|
Constructor. | GradientBase | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt. | EventDispatcher | |
![]() |
Verzendt een gebeurtenis naar de gebeurtenisstroom. | EventDispatcher | |
![]() |
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis. | EventDispatcher | |
![]() |
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | |
![]() |
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | |
![]() |
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | |
![]() |
Verwijdert een listener uit het object EventDispatcher. | EventDispatcher | |
![]() |
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | |
![]() |
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | |
![]() |
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | |
![]() |
Retourneert de primitieve waarde van het opgegeven object. | Object | |
![]() |
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis. | EventDispatcher | |
| Constante | Gedefinieerd door | ||
|---|---|---|---|
| GRADIENT_DIMENSION : Number = 1638.4 [statisch]
Value of the width and height of the untransformed gradient
| GradientBase | ||
angle | eigenschap |
angle:Number| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
De standaardwaarde is 0.0.
Implementatie
public function get angle():Number public function set angle(value:Number):voidcompoundTransform | eigenschap |
protected var compoundTransform:mx.geom:CompoundTransform| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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 | eigenschap |
entries:Array| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
De standaardwaarde is [].
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange verzonden.
Implementatie
public function get entries():Array public function set entries(value:Array):voidinterpolationMethod | eigenschap |
interpolationMethod:String| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
De standaardwaarde is InterpolationMethod.RGB.
Implementatie
public function get interpolationMethod():String public function set interpolationMethod(value:String):voidmatrix | eigenschap |
matrix:Matrix| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
De standaardwaarde is null.
Implementatie
public function get matrix():Matrix public function set matrix(value:Matrix):voidrotation | eigenschap |
rotation:Number| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
De standaardwaarde is 0.0.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange verzonden.
Implementatie
public function get rotation():Number public function set rotation(value:Number):voidspreadMethod | eigenschap |
spreadMethod:String| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | 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.
De standaardwaarde is SpreadMethod.PAD.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange verzonden.
Implementatie
public function get spreadMethod():String public function set spreadMethod(value:String):voidx | eigenschap |
x:Number| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the x axis.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange verzonden.
Implementatie
public function get x():Number public function set x(value:Number):voidy | eigenschap |
y:Number| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the y axis.
Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis propertyChange verzonden.
Implementatie
public function get y():Number public function set y(value:Number):voidGradientBase | () | Constructor |
public function GradientBase()| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 3 |
| Runtimeversies: | Flash Player 9, AIR 1.1 |
Constructor.
GRADIENT_DIMENSION | Constante |
public static const GRADIENT_DIMENSION:Number = 1638.4| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 4 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Value of the width and height of the untransformed gradient
Wed Jun 13 2018, 11:42 AM Z
Overerfde openbare eigenschappen verbergen
Overerfde openbare eigenschappen weergeven