Pakiet | mx.graphics |
Klasa | public class SolidColorStroke |
Dziedziczenie | SolidColorStroke EventDispatcher Object |
Implementuje | IStroke |
Podklasy | Stroke |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
... <mx:SolidColorStroke id="ticks" color="0xFF0000" weight="1"/> <mx:SolidColorStroke id="mticks" color="0x0000FF" weight="1"/> <mx:LineChart id="mychart" dataProvider="{ndxa}"> <mx:horizontalAxisRenderer> <mx:AxisRenderer placement="bottom" canDropLabels="true"> <mx:tickStroke>{ticks}</mx:tickStroke> <mx:minorTickStroke>{mticks}</mx:minorTickStroke> </mx:AxisRenderer> </mx:horizontalAxisRenderer> </LineChart> ...Składnia MXMLUkryj składnię MXML
The <mx:SolidColorStroke>
tag inherits all the tag attributes
of its superclass, and adds the following tag attributes:
<mx:SolidColorStroke Properties alpha="1.0" caps="round|none|square" color="0x000000" joints="round|bevel|miter" miterLimit="3" pixelHinting="false|true" scaleMode="normal|none|horizontal|vertical" weight="1 (in most cases)" />
Powiązane elementy interfejsu API
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
alpha : Number
The transparency of a line. | SolidColorStroke | ||
caps : String
Specifies the type of caps at the end of lines. | SolidColorStroke | ||
color : uint
The line color. | SolidColorStroke | ||
constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | ||
joints : String
Specifies the type of joint appearance used at angles. | SolidColorStroke | ||
miterLimit : Number
Indicates the limit at which a miter is cut off. | SolidColorStroke | ||
pixelHinting : Boolean
Specifies whether to hint strokes to full pixels. | SolidColorStroke | ||
scaleMode : String
A value from the LineScaleMode class
that specifies which scale mode to use. | SolidColorStroke | ||
weight : Number
The line weight, in pixels. | SolidColorStroke |
Metoda | Zdefiniowane przez | ||
---|---|---|---|
SolidColorStroke(color:uint = 0x000000, weight:Number = 1, alpha:Number = 1.0, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)
Constructor. | SolidColorStroke | ||
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. | SolidColorStroke | ||
Generates a GraphicsStroke object representing
this stroke. | SolidColorStroke | ||
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 |
alpha | właściwość |
alpha:Number
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The transparency of a line. Possible values are 0.0 (invisible) through 1.0 (opaque).
Wartością domyślną jest 1.0..
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 alpha():Number
public function set alpha(value:Number):void
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 type of caps at the end of lines.
Valid values are: CapsStyle.ROUND
, CapsStyle.SQUARE
,
and CapsStyle.NONE
.
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):void
color | właściwość |
color:uint
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The line color.
Wartością domyślną jest 0x000000 (black)..
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 color():uint
public function set color(value:uint):void
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 |
Specifies the type of joint appearance used at angles.
Valid values are JointStyle.ROUND
, JointStyle.MITER
,
and JointStyle.BEVEL
.
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):void
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 |
Indicates the limit at which a miter is cut off. Valid values range from 1 to 255.
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):void
pixelHinting | właściwość |
pixelHinting:Boolean
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Specifies whether to hint strokes to full pixels. This value affects both the position of anchors of a curve and the line stroke size itself.
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):void
scaleMode | właściwość |
scaleMode:String
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
A value from the LineScaleMode class that 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):void
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 line weight, in pixels. For many charts, the default value is 1 pixel.
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):void
SolidColorStroke | () | Konstruktor |
public function SolidColorStroke(color:uint = 0x000000, weight:Number = 1, alpha:Number = 1.0, 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.
Parametrycolor:uint (default = 0x000000 ) — Specifies the line color.
The default value is 0x000000 (black).
| |
weight:Number (default = 1 ) — Specifies the line weight, in pixels.
The default value is 1.
| |
alpha:Number (default = 1.0 ) — Specifies the alpha value in the range 0.0 to 1.0.
The default value is 1.0 (opaque).
| |
pixelHinting:Boolean (default = false ) — Specifies whether to hint strokes to full pixels.
This value affects both the position of anchors of a curve
and the line stroke size itself.
The default value is 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 ") — Specifies the type of caps at the end of lines.
Valid values are CapsStyle.ROUND , CapsStyle.SQUARE ,
and CapsStyle.NONE .
The default value is CapsStyle.ROUND .
| |
joints:String (default = "round ") — Specifies the type of joint appearance used at angles.
Valid values are JointStyle.ROUND , JointStyle.MITER ,
and JointStyle.BEVEL .
The default value is JointStyle.ROUND .
| |
miterLimit:Number (default = 3 ) — Indicates the limit at which a miter is cut off.
Valid values range from 1 to 255.
The default value is 3.
|
apply | () | metoda |
public function apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Flex 3 |
Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Applies the properties to the specified Graphics object.
Parametry
graphics: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 3 |
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