パッケージflash.display
クラスpublic final class GraphicsPath
継承GraphicsPath Inheritance Object
実装 IGraphicsPath, IGraphicsData

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

描画コマンドおよびそれらのコマンドの座標パラメータのコレクションです。

GraphicsPath オブジェクトは、Graphics.drawGraphicsData() メソッドと共に使用します。GraphicsPath オブジェクトの描画は、Graphics.drawPath() メソッドの呼び出しに相当します。

GraphicsPath クラスには独自のメソッドのセット(curveTo()lineTo()moveTo()wideLineTo() および wideMoveTo())も含まれています。これらのメソッドは、GraphicsPath.commands および GraphicsPath.data ベクター配列を調整するための Graphics クラスのメソッドに似ています。

関連項目

flash.display.Graphics.drawGraphicsData()
flash.display.Graphics.drawPath()


パブリックプロパティ
 プロパティ定義元
  commands : Vector.<int>
パスを表す整数としての描画コマンドの Vector です。
GraphicsPath
 Inheritedconstructor : Object
指定されたオブジェクトインスタンスのクラスオブジェクトまたはコンストラクタ関数への参照です。
Object
  data : Vector.<Number>
描画コマンドと共に使用するパラメータを含む Number の Vector です。
GraphicsPath
 Inheritedprototype : Object
[静的] クラスまたは関数オブジェクトのプロトタイプオブジェクトへの参照です。
Object
  winding : String
GraphicsPathWinding クラスで定義されている値を使用して、湾曲規則を指定します。
GraphicsPath
パブリックメソッド
 メソッド定義元
  
GraphicsPath(commands:Vector.<int> = null, data:Vector.<Number> = null, winding:String = "evenOdd")
新しい GraphicsPath オブジェクトを作成します。
GraphicsPath
  
curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
新しい「curveTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。
GraphicsPath
 Inherited
オブジェクトに指定されたプロパティが定義されているかどうかを示します。
Object
 Inherited
Object クラスのインスタンスが、パラメータとして指定されたオブジェクトのプロトタイプチェーン内にあるかどうかを示します。
Object
  
新しい「lineTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。
GraphicsPath
  
新しい「moveTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。
GraphicsPath
 Inherited
指定されたプロパティが存在し、列挙できるかどうかを示します。
Object
 Inherited
ループ処理に対するダイナミックプロパティの可用性を設定します。
Object
 Inherited
指定されたオブジェクトのストリング表現を返します。
Object
 Inherited
指定されたオブジェクトのプリミティブな値を返します。
Object
  
新しい「wideLineTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。
GraphicsPath
  
新しい「wideMoveTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。
GraphicsPath
プロパティの詳細
commandsプロパティ
public var commands:Vector.<int>

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

パスを表す整数としての描画コマンドの Vector です。コマンドはそれぞれ GraphicsPathCommand クラスで定義されたいずれかの値となります。

関連項目

dataプロパティ 
public var data:Vector.<Number>

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

描画コマンドと共に使用するパラメータを含む Number の Vector です。

windingプロパティ 
winding:String

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

GraphicsPathWinding クラスで定義されている値を使用して、湾曲規則を指定します。



実装
    public function get winding():String
    public function set winding(value:String):void

関連項目

コンストラクタの詳細
GraphicsPath()コンストラクタ
public function GraphicsPath(commands:Vector.<int> = null, data:Vector.<Number> = null, winding:String = "evenOdd")

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

新しい GraphicsPath オブジェクトを作成します。

パラメータ
commands:Vector.<int> (default = null) — GraphicsPathCommand クラスで定義されているコマンドを表す整数の Vector です。
 
data:Vector.<Number> (default = null) — Number の Vector で、数値の各ペアはポイント(x と y のペア)として扱われます。
 
winding:String (default = "evenOdd") — GraphicsPathWinding クラスで定義されている値を使用して、湾曲規則を指定します。

関連項目

メソッドの詳細
curveTo()メソッド
public function curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

新しい「curveTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。

パラメータ

controlX:Number — 親表示オブジェクトの基準点からの相対的なコントロールポイントの水平座標を指定する数値。
 
controlY:Number — 親表示オブジェクトの基準点からの相対的なコントロールポイントの垂直座標を指定する数値。
 
anchorX:Number — 親表示オブジェクトの基準点からの相対的な次のアンカーポイントの水平座標を指定する数値。
 
anchorY:Number — 親表示オブジェクトの基準点からの相対的な次のアンカーポイントの垂直座標を指定する数値。

関連項目

lineTo()メソッド 
public function lineTo(x:Number, y:Number):void

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

新しい「lineTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。

パラメータ

x:Number — 線のターゲットポイントの x 座標。
 
y:Number — 線のターゲットポイントの y 座標。

関連項目

moveTo()メソッド 
public function moveTo(x:Number, y:Number):void

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

新しい「moveTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。

パラメータ

x:Number — ターゲットポイントの x 座標。
 
y:Number — ターゲットポイントの y 座標。

関連項目

wideLineTo()メソッド 
public function wideLineTo(x:Number, y:Number):void

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

新しい「wideLineTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。

パラメータ

x:Number — 線のターゲットポイントの x 座標。
 
y:Number — 線のターゲットポイントの y 座標。

関連項目

wideMoveTo()メソッド 
public function wideMoveTo(x:Number, y:Number):void

言語バージョン: ActionScript 3.0
ランタイムバージョン: Flash Player 10, AIR 1.5

新しい「wideMoveTo」コマンドを commands ベクターに、新しい座標を data ベクターに追加します。

パラメータ

x:Number — ターゲットポイントの x 座標。
 
y:Number — ターゲットポイントの y 座標。

関連項目





 

 

このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート

現在のページ: http://livedocs.adobe.com/flex/3_jp/langref/flash/display/GraphicsPath.html