套件 | mx.graphics |
類別 | public class RadialGradientStroke |
繼承 | RadialGradientStroke GradientStroke GradientBase EventDispatcher Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
預設 MXML 屬性entries
更多範例
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
angle : Number 已不建議使用: 請使用 rotation
By default, the LinearGradientStroke defines a transition
from left to right across the control. | GradientBase | ||
caps : String
Specifies the appearance of the ends of lines. | GradientStroke | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
entries : Array
An Array of GradientEntry objects
defining the fill patterns for the gradient fill. | GradientBase | ||
focalPointRatio : Number
Sets the location of the start of the radial fill. | RadialGradientStroke | ||
interpolationMethod : String
A value from the InterpolationMethod class
that specifies which interpolation method to use. | GradientBase | ||
joints : String
A value from the JointStyle class that specifies the type
of joint appearance used at angles. | GradientStroke | ||
matrix : Matrix
An array of values used for matrix transformation. | GradientBase | ||
miterLimit : Number
A number that indicates the limit at which a miter is cut off. | GradientStroke | ||
pixelHinting : Boolean
A Boolean value that specifies whether to hint strokes to full pixels. | GradientStroke | ||
rotation : Number
By default, the LinearGradientStroke defines a transition
from left to right across the control. | GradientBase | ||
scaleMode : String
Specifies which scale mode to use. | GradientStroke | ||
scaleX : Number
The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
| RadialGradientStroke | ||
scaleY : Number
The vertical scale of the gradient transform, which defines the height of the (unrotated) gradient
| RadialGradientStroke | ||
spreadMethod : String
A value from the SpreadMethod class
that specifies which spread method to use. | GradientBase | ||
weight : Number
The stroke weight, in pixels. | GradientStroke | ||
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 |
方法 | 定義自 | ||
---|---|---|---|
RadialGradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)
Constructor. | RadialGradientStroke | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Applies the properties to the specified Graphics object. | GradientStroke | ||
Generates a GraphicsStroke object representing
this stroke. | GradientStroke | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
focalPointRatio | 屬性 |
focalPointRatio:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Sets the location of the start of the radial fill.
Valid values are from -1.0
to 1.0
.
A value of -1.0
sets the focal point
(or, start of the gradient fill)
on the left of the bounding Rectangle.
A value of 1.0
sets the focal point
on the right of the bounding Rectangle.
If you use this property in conjunction
with the angle
property,
this value specifies the degree of distance
from the center that the focal point occurs.
For example, with an angle of 45
and focalPointRatio
of 0.25,
the focal point is slightly lower and to the right of center.
If you set focalPointRatio
to 0
,
the focal point is in the middle of the bounding Rectangle.
focalPointRatio
to 1
,
the focal point is all the way to the bottom right corner
of the bounding Rectangle.
預設值為 0.0。
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get focalPointRatio():Number
public function set focalPointRatio(value:Number):void
scaleX | 屬性 |
scaleX:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get scaleX():Number
public function set scaleX(value:Number):void
scaleY | 屬性 |
scaleY:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The vertical scale of the gradient transform, which defines the height of the (unrotated) gradient
此屬性可以做為資料繫結的來源。一旦修改此屬性,將傳送 propertyChange
事件。
實作
public function get scaleY():Number
public function set scaleY(value:Number):void
RadialGradientStroke | () | 建構函式 |
public function RadialGradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數weight:Number (default = 1 ) — Specifies the line weight, in pixels.
This parameter is optional,
with a default value of 1 .
| |
pixelHinting:Boolean (default = false ) — A Boolean value that specifies
whether to hint strokes to full pixels.
This affects both the position of anchors of a curve
and the line stroke size itself.
With pixelHinting set to true ,
Flash Player and AIR hint line widths to full pixel widths.
With pixelHinting set to false ,
disjoints can appear for curves and straight lines.
This parameter is optional,
with a default value of false .
| |
scaleMode:String (default = "normal ") — A value from the LineScaleMode class
that specifies which scale mode to use.
Valid values are LineScaleMode.HORIZONTAL ,
LineScaleMode.NONE , LineScaleMode.NORMAL ,
and LineScaleMode.VERTICAL .
This parameter is optional,
with a default value of LineScaleMode.NORMAL .
| |
caps:String (default = "round ") — A value from the CapsStyle class
that specifies the type of caps at the end of lines.
Valid values are CapsStyle.NONE ,
CapsStyle.ROUND , and CapsStyle.SQUARE .
A null value is equivalent to
CapsStyle.ROUND .
This parameter is optional,
with a default value of CapsStyle.ROUND .
| |
joints:String (default = "round ") — A value from the JointStyle class
that specifies the type of joint appearance used at angles.
Valid values are JointStyle.BEVEL ,
JointStyle.MITER , and JointStyle.ROUND .
A null value is equivalent to
JointStyle.ROUND .
This parameter is optional,
with a default value of JointStyle.ROUND .
| |
miterLimit:Number (default = 3 ) — A number that indicates the limit
at which a miter is cut off.
Valid values range from 1 to 255
(and values outside of that range are rounded to 1 or 255).
This value is only used if the jointStyle property
is set to miter .
The miterLimit value represents the length that a miter
can extend beyond the point at which the lines meet to form a joint.
The value expresses a factor of the line thickness .
For example, with a miterLimit factor of 2.5 and a
thickness of 10 pixels, the miter is cut off at 25 pixels.
This parameter is optional,
with a default value of 3 .
|
Tue Jun 12 2018, 03:47 PM Z