Pacchetto | mx.graphics |
Interfaccia | public interface IStroke |
Implementatori | GradientStroke, SolidColorStroke |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Proprietà pubbliche
Proprietà | Definito da | ||
---|---|---|---|
joints : String [sola lettura]
Specifies the appearance of line intersections used at angles. | IStroke | ||
miterLimit : Number [sola lettura]
Indicates the limit at which a miter is cut off. | IStroke | ||
scaleMode : String [sola lettura]
A value from the LineScaleMode class
that specifies which scale mode to use. | IStroke | ||
weight : Number
The line weight, in pixels. | IStroke |
Metodi pubblici
Metodo | Definito da | ||
---|---|---|---|
Applies the properties to the specified Graphics object. | IStroke | ||
Generates a GraphicsStroke object representing
this stroke. | IStroke |
Descrizione delle proprietà
joints | proprietà |
joints:String
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Specifies the appearance of line intersections used at angles.
Valid values are JointStyle.ROUND
, JointStyle.MITER
,
and JointStyle.BEVEL
.
Implementazione
public function get joints():String
Elementi API correlati
flash.display.JoingStyle
miterLimit | proprietà |
miterLimit:Number
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Indicates the limit at which a miter is cut off. Valid values range from 0 to 255.
Il valore predefinito è 3.
Implementazione
public function get miterLimit():Number
scaleMode | proprietà |
scaleMode:String
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | 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.
Il valore predefinito è LineScaleMode.NORMAL.
Implementazione
public function get scaleMode():String
Elementi API correlati
weight | proprietà |
Descrizione dei metodi
apply | () | metodo |
public function apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 3 |
Versioni runtime: | Flash Player 9, AIR 1.1 |
Applies the properties to the specified Graphics object.
Parametri
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 | () | metodo |
public function createGraphicsStroke(targetBounds:Rectangle, targetOrigin:Point):GraphicsStroke
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Flex 4 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Generates a GraphicsStroke object representing this stroke.
Parametri
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, 02:44 PM Z