| Pacote | mx.graphics |
| Classe | public class LinearGradientStroke |
| Herança | LinearGradientStroke GradientStroke GradientBase EventDispatcher Object |
| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Propriedade MXML padrãoentries
Mais exemplos
Elementos da API relacionados
Propriedades públicas
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | angle : Number Deprecado: Use 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
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto. | 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 | |
| scaleX : Number
The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
| LinearGradientStroke | ||
![]() | 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 | |
Propriedades protegidas
Métodos públicos
| Método | Definido por | ||
|---|---|---|---|
LinearGradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)
Constructor. | LinearGradientStroke | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento. | EventDispatcher | |
[substituir]
Applies the properties to the specified Graphics object. | LinearGradientStroke | ||
![]() |
Generates a GraphicsStroke object representing
this stroke. | GradientStroke | |
![]() |
Envia um evento para o fluxo de eventos. | EventDispatcher | |
![]() |
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento. | EventDispatcher | |
![]() |
Indica se um objeto tem uma propriedade especificada definida. | Object | |
![]() |
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro. | Object | |
![]() |
Indica se a propriedade especificada existe e é enumerável. | Object | |
![]() |
Remove um ouvinte do objeto EventDispatcher. | EventDispatcher | |
![]() |
Define a disponibilidade de uma propriedade dinâmica para operações de repetição. | Object | |
![]() |
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade. | Object | |
![]() |
Retorna a representação de string do objeto especificado. | Object | |
![]() |
Retorna o valor primitivo do objeto especificado. | Object | |
![]() |
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado. | EventDispatcher | |
Eventos
Constantes públicas
Detalhes da propriedade
scaleX | propriedade |
scaleX: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 horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
Essa propriedade pode ser usada como a origem para o vínculo de dados. Quando essa propriedade é modificada, ela despacha o evento propertyChange .
Implementação
public function get scaleX():Number public function set scaleX(value:Number):voidDetalhes do construtor
LinearGradientStroke | () | Construtor |
public function LinearGradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)| Versão da linguagem: | ActionScript 3.0 |
| Versão de produto: | Flex 3 |
| Versões de runtime: | Flash Player 9, AIR 1.1 |
Constructor.
Parâmetrosweight: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.NONE.
| |
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.
|
Detalhes do método
apply | () | método |
override 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.
|
Wed Jun 13 2018, 11:10 AM Z
Ocultar propriedades públicas herdadas
Mostrar propriedades públicas herdadas