適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
mx.graphics 

IStroke  - AS3 Flex

套件mx.graphics
介面public interface IStroke
實作者 GradientStroke, SolidColorStroke

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



公用屬性
 屬性定義自
  joints : String
[唯讀] Specifies the appearance of line intersections used at angles.
IStroke
  miterLimit : Number
[唯讀] Indicates the limit at which a miter is cut off.
IStroke
  scaleMode : String
[唯讀] A value from the LineScaleMode class that specifies which scale mode to use.
IStroke
  weight : Number
The line weight, in pixels.
IStroke
公用方法
 方法定義自
  
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
屬性詳細資訊

joints

屬性
joints:String  [唯讀]

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: 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.



實作
    public function get joints():String

相關 API 元素

flash.display.JoingStyle

miterLimit

屬性 
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 0 to 255.

預設值為 3。



實作
    public function get miterLimit():Number

scaleMode

屬性 
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。



實作
    public function get scaleMode():String

相關 API 元素

weight

屬性 
weight:Number

語言版本: ActionScript 3.0
產品版本: Flex 3
執行階段版本: Flash Player 9, AIR 1.1

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



實作
    public function get weight():Number
    public function set weight(value:Number):void
方法詳細資訊

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 4
執行階段版本: Flash Player 10, AIR 1.5

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.




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。