패키지 | mx.graphics |
클래스 | public class LinearGradientStroke |
상속 | LinearGradientStroke GradientStroke GradientBase EventDispatcher Object |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
기본 MXML 속성entries
기타 예제
관련 API 요소
공용 속성
속성 | 정의 주체 | ||
---|---|---|---|
angle : Number 사용되지 않음: 사용 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
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | 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 |
보호 속성
공용 메서드
메서드 | 정의 주체 | ||
---|---|---|---|
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
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | ||
[재정의]
Applies the properties to the specified Graphics object. | LinearGradientStroke | ||
Generates a GraphicsStroke object representing
this stroke. | GradientStroke | ||
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher |
공용 상수
속성 세부 정보
scaleX | 속성 |
scaleX:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The horizontal scale of the gradient transform, which defines the width of the (unrotated) gradient
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange
이벤트를 전달합니다.
구현
public function get scaleX():Number
public function set scaleX(value:Number):void
생성자 세부 정보
LinearGradientStroke | () | 생성자 |
public function LinearGradientStroke(weight:Number = 1, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "round", joints:String = "round", miterLimit:Number = 3)
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
매개 변수weight: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 .
|
메서드 세부 정보
apply | () | 메서드 |
override public function apply(graphics:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Applies the properties to the specified Graphics object.
매개 변수
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.
|
Tue Jun 12 2018, 03:17 PM Z