| 패키지 | mx.graphics |
| 클래스 | public class SolidColorStroke |
| 상속 | SolidColorStroke EventDispatcher Object |
| 구현 | IStroke |
| 하위 클래스 | Stroke |
| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | 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>
...
MXML 구문
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)"
/>
기타 예제
관련 API 요소
| 속성 | 정의 주체 | ||
|---|---|---|---|
| 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
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | 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 | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
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
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | |
Applies the properties to the specified Graphics object. | SolidColorStroke | ||
Generates a GraphicsStroke object representing
this stroke. | SolidColorStroke | ||
![]() |
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | |
![]() |
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
![]() |
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | |
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
![]() |
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | |
alpha | 속성 |
alpha:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | Flash Player 9, AIR 1.1 |
The transparency of a line. Possible values are 0.0 (invisible) through 1.0 (opaque).
기본값: 1.0..
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get alpha():Number public function set alpha(value:Number):voidcaps | 속성 |
caps:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | 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.
기본값: CapsStyle.ROUND.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get caps():String public function set caps(value:String):voidcolor | 속성 |
joints | 속성 |
joints:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | 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.
기본값: JointStyle.ROUND.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get joints():String public function set joints(value:String):voidmiterLimit | 속성 |
miterLimit:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | Flash Player 9, AIR 1.1 |
Indicates the limit at which a miter is cut off. Valid values range from 1 to 255.
기본값: 3.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get miterLimit():Number public function set miterLimit(value:Number):voidpixelHinting | 속성 |
pixelHinting:Boolean| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | 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.
기본값: false.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get pixelHinting():Boolean public function set pixelHinting(value:Boolean):voidscaleMode | 속성 |
scaleMode:String| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | 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.
기본값: LineScaleMode.NORMAL.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get scaleMode():String public function set scaleMode(value:String):voidweight | 속성 |
weight:Number| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | Flash Player 9, AIR 1.1 |
The line weight, in pixels. For many charts, the default value is 1 pixel.
이 속성은 데이터 바인딩에 대한 소스로 사용할 수 있습니다. 이 속성을 수정하면 propertyChange 이벤트를 전달합니다.
구현
public function get weight():Number public function set weight(value:Number):voidSolidColorStroke | () | 생성자 |
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)| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
매개 변수color: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 | () | 메서드 |
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.
|
createGraphicsStroke | () | 메서드 |
public function createGraphicsStroke(targetBounds:Rectangle, targetOrigin:Point):GraphicsStroke| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | Flex 3 |
| 런타임 버전: | Flash Player 9, AIR 1.1 |
Generates a GraphicsStroke object representing this stroke.
매개 변수
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, 03:17 PM Z
MXML 구문 표시