| Pakiet | mx.graphics |
| Klasa | public class GradientStroke |
| Dziedziczenie | GradientStroke GradientBase EventDispatcher Object |
| Implementuje | IStroke |
| Podklasy | LinearGradientStroke, RadialGradientStroke |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Domyślna właściwość MXMLentries
Powiązane elementy interfejsu API
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
![]() | angle : Number Przestarzałe: Użyj 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
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | 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 | |
| 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 | ||
![]() | 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 | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
GradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)
Constructor. | GradientStroke | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
Applies the properties to the specified Graphics object. | GradientStroke | ||
Generates a GraphicsStroke object representing
this stroke. | GradientStroke | ||
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
caps | właściwość |
caps:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Specifies the appearance of the ends of lines.
Valid values are CapsStyle.NONE,
CapsStyle.ROUND, and CapsStyle.SQUARE.
A null value is equivalent to
CapsStyle.ROUND.
Wartością domyślną jest CapsStyle.ROUND.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get caps():String public function set caps(value:String):voidPowiązane elementy interfejsu API
joints | właściwość |
joints:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
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.
Wartością domyślną jest JointStyle.ROUND.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get joints():String public function set joints(value:String):voidPowiązane elementy interfejsu API
miterLimit | właściwość |
miterLimit:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
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 JointStyle.MITER.
The value of the miterLimit property 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.
Wartością domyślną jest 3.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get miterLimit():Number public function set miterLimit(value:Number):voidpixelHinting | właściwość |
pixelHinting:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
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.
Wartością domyślną jest false.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get pixelHinting():Boolean public function set pixelHinting(value:Boolean):voidscaleMode | właściwość |
scaleMode:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Specifies which scale mode to use. Value valids are:
-
LineScaleMode.NORMAL— Always scale the line thickness when the object is scaled (the default). -
LineScaleMode.NONE— Never scale the line thickness. -
LineScaleMode.VERTICAL— Do not scale the line thickness if the object is scaled vertically only. -
LineScaleMode.HORIZONTAL— Do not scale the line thickness if the object is scaled horizontally only.
Wartością domyślną jest LineScaleMode.NORMAL.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get scaleMode():String public function set scaleMode(value:String):voidPowiązane elementy interfejsu API
weight | właściwość |
weight:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The stroke weight, in pixels.
Ta właściwość może być używana jako źródło dla tworzenia powiązań danych. Jeśli ta właściwość zostanie zmodyfikowana, zostanie wywołane zdarzenie propertyChange .
Implementacja
public function get weight():Number public function set weight(value:Number):voidGradientStroke | () | Konstruktor |
public function GradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructor.
Parametryweight: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.
|
apply | () | metoda |
public function apply(g:Graphics, targetBounds:Rectangle, targetOrigin:Point):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Applies the properties to the specified Graphics object.
Parametry
g:Graphics — The Graphics object to apply the properties to.
| |
targetBounds:Rectangle — The bounds of the shape that the stroke is applied to.
| |
targetOrigin:Point — The Point that defines the origin (0,0) of the shape in the
coordinate system of target.
|
createGraphicsStroke | () | metoda |
public function createGraphicsStroke(targetBounds:Rectangle, targetOrigin:Point):GraphicsStroke| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Generates a GraphicsStroke object representing this stroke.
Parametry
targetBounds:Rectangle — The stroke's bounding box.
| |
targetOrigin:Point — The Point that defines the origin (0,0) of the shape in the
coordinate system of target.
|
GraphicsStroke — The Drawing API-2 GraphicsStroke object representing
this stroke.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne