Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: Recuperando dados do servidor...
Recuperando dados do servidor...
mx.graphics 

IStroke  - AS3 Flex

Pacotemx.graphics
Interfacepublic interface IStroke
Implementadores GradientStroke, SolidColorStroke

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 3
Versões de runtime: Flash Player 9, AIR 1.1

Defines the interface that classes that define a line must implement.



Propriedades públicas
 PropriedadeDefinido por
  joints : String
[somente leitura] Specifies the appearance of line intersections used at angles.
IStroke
  miterLimit : Number
[somente leitura] Indicates the limit at which a miter is cut off.
IStroke
  scaleMode : String
[somente leitura] A value from the LineScaleMode class that specifies which scale mode to use.
IStroke
  weight : Number
The line weight, in pixels.
IStroke
Métodos públicos
 MétodoDefinido por
  
apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
Applies the properties to the specified Graphics object.
IStroke
  
Generates a GraphicsStroke object representing this stroke.
IStroke
Detalhes da propriedade

joints

propriedade
joints:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 3
Versões de 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.



Implementação
    public function get joints():String

Elementos da API relacionados

flash.display.JoingStyle

miterLimit

propriedade 
miterLimit:Number  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 3
Versões de runtime: Flash Player 9, AIR 1.1

Indicates the limit at which a miter is cut off. Valid values range from 0 to 255.

O valor padrão é 3.



Implementação
    public function get miterLimit():Number

scaleMode

propriedade 
scaleMode:String  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 3
Versões de 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.

O valor padrão é LineScaleMode.NORMAL.



Implementação
    public function get scaleMode():String

Elementos da API relacionados

weight

propriedade 
weight:Number

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 3
Versões de runtime: Flash Player 9, AIR 1.1

The line weight, in pixels. For many chart lines, the default value is 1 pixel.



Implementação
    public function get weight():Number
    public function set weight(value:Number):void
Detalhes do método

apply

()método
public function apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 3
Versões de runtime: Flash Player 9, AIR 1.1

Applies the properties to the specified Graphics object.

Parâmetros

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

()método 
public function createGraphicsStroke(targetBounds:Rectangle, targetOrigin:Point):GraphicsStroke

Versão da linguagem: ActionScript 3.0
Versão de produto: Flex 4
Versões de runtime: Flash Player 10, AIR 1.5

Generates a GraphicsStroke object representing this stroke.

Parâmetros

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.

Retorna
GraphicsStroke — The Drawing API-2 GraphicsStroke object representing this stroke.




[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.