| Paket | mx.graphics |
| Sınıf | public class GradientBase |
| Miras Alma | GradientBase EventDispatcher Object |
| Alt Sınıflar | GradientStroke, LinearGradient, RadialGradient |
| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Varsayılan MXML Özelliğientries
| Özellik | Tanımlayan: | ||
|---|---|---|---|
| angle : Number Onaylanmamış : Lütfen Şunu Kullanın: rotation
By default, the LinearGradientStroke defines a transition
from left to right across the control. | GradientBase | ||
![]() | constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | 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 | ||
| Özellik | Tanımlayan: | ||
|---|---|---|---|
| compoundTransform : mx.geom:CompoundTransform
Holds the matrix and the convenience transform properties (x, y, and rotation). | GradientBase | ||
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
Constructor. | GradientBase | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | EventDispatcher | |
![]() |
Olay akışına bir olay gönderir. | EventDispatcher | |
![]() |
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | |
![]() |
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | |
![]() |
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | |
![]() |
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | |
![]() |
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | |
![]() |
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | |
![]() |
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | |
![]() |
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | |
![]() |
Belirtilen nesnenin temel değerini döndürür. | Object | |
![]() |
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher | |
| Sabit | Tanımlayan: | ||
|---|---|---|---|
| GRADIENT_DIMENSION : Number = 1638.4 [statik]
Value of the width and height of the untransformed gradient
| GradientBase | ||
angle | özellik |
angle:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur 0.0.
Uygulama
public function get angle():Number public function set angle(value:Number):voidcompoundTransform | özellik |
protected var compoundTransform:mx.geom:CompoundTransform| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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 | özellik |
entries:Array| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
Varsayılan değer şudur [].
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange olayını gönderir.
Uygulama
public function get entries():Array public function set entries(value:Array):voidinterpolationMethod | özellik |
interpolationMethod:String| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur InterpolationMethod.RGB.
Uygulama
public function get interpolationMethod():String public function set interpolationMethod(value:String):voidmatrix | özellik |
matrix:Matrix| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur null.
Uygulama
public function get matrix():Matrix public function set matrix(value:Matrix):voidrotation | özellik |
rotation:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur 0.0.
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange olayını gönderir.
Uygulama
public function get rotation():Number public function set rotation(value:Number):voidspreadMethod | özellik |
spreadMethod:String| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | 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.
Varsayılan değer şudur SpreadMethod.PAD.
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange olayını gönderir.
Uygulama
public function get spreadMethod():String public function set spreadMethod(value:String):voidx | özellik |
x:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the x axis.
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange olayını gönderir.
Uygulama
public function get x():Number public function set x(value:Number):voidy | özellik |
y:Number| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the y axis.
Bu özellik veri ciltleme kaynağı olarak kullanılabilir. Bu özellik değiştirildiğinde, propertyChange olayını gönderir.
Uygulama
public function get y():Number public function set y(value:Number):voidGradientBase | () | Yapıcı |
public function GradientBase()| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 3 |
| Çalışma Zamanı Sürümleri: | Flash Player 9, AIR 1.1 |
Constructor.
GRADIENT_DIMENSION | Sabit |
public static const GRADIENT_DIMENSION:Number = 1638.4| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | Flex 4 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Value of the width and height of the untransformed gradient
Tue Jun 12 2018, 01:09 PM Z
Miras Alınan Genel Özellikleri Gizle
Miras Alınan Genel Özellikleri Göster