Packagefrocessing.core
Classpublic class GraphicsBase
SubclassesGraphicsEx

Graphics を拡張するための基底クラスです.



Public Properties
 PropertyDefined by
  _caps : String
GraphicsBase
  caps : String
線の終端のキャップの種類を指定する CapsStyle クラスの値を示します.
GraphicsBase
  default_gradient_matrix : Matrix
GraphicsBase
  _fill_alpha : Number
GraphicsBase
  fillAlpha : Number
塗りの透明度を示します.有効な値は 0~1 です.
GraphicsBase
  _fill_color : uint
GraphicsBase
  fillColor : uint
塗りの色を示します.
GraphicsBase
  graphics : Graphics
描画対象となる Graphics を示します.
GraphicsBase
  _joints : String
GraphicsBase
  joints : String
角で使用する接合点の外観の種類を指定する JointStyle クラスの値を示します.
GraphicsBase
  lastCtrlX : Number
[read-only]
GraphicsBase
  lastCtrlY : Number
[read-only]
GraphicsBase
  lastX : Number
[read-only] 現在の描画位置 x 座標を示します.
GraphicsBase
  lastY : Number
[read-only] 現在の描画位置 y 座標を示します.
GraphicsBase
  _miterLimit : Number
GraphicsBase
  miterLimit : Number
マイターが切り取られる限度を示す数値を示します.
GraphicsBase
  _pixelHinting : Boolean
GraphicsBase
  pixelHinting : Boolean
線をヒンティングするかどうかを示します.
GraphicsBase
  _scaleMode : String
GraphicsBase
  scaleMode : String
使用する拡大 / 縮小モードを指定する LineScaleMode クラスの値を示します.
GraphicsBase
  startX : Number
[read-only]
GraphicsBase
  startY : Number
[read-only]
GraphicsBase
  _stroke_alpha : Number
GraphicsBase
  strokeAlpha : Number
線の透明度を示します.有効な値は 0~1 です.
GraphicsBase
  _stroke_color : uint
GraphicsBase
  strokeColor : uint
線の色を示します.
GraphicsBase
  _thickness : Number
GraphicsBase
  thickness : Number
線の太さを示します.有効な値は 0~255 です.
GraphicsBase
Protected Properties
 PropertyDefined by
  _gc : Graphics
GraphicsBase
  _lastCtrlX : Number
GraphicsBase
  _lastCtrlY : Number
GraphicsBase
  _lastX : Number
GraphicsBase
  _lastY : Number
GraphicsBase
  _startX : Number
GraphicsBase
  _startY : Number
GraphicsBase
  _stroke_do : Boolean
GraphicsBase
Public Methods
 MethodDefined by
  
GraphicsBase(gc:Graphics)
新しい GraphicsBase クラスのインスタンスを生成します.
GraphicsBase
  
applyFill():void
指定されている塗りで beginFill() を実行します.
GraphicsBase
  
指定されている線のスタイルをを適用します.
GraphicsBase
  
beginBitmapFill(bitmap:BitmapData, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false):void
描画領域をビットマップイメージで塗りつぶします.
GraphicsBase
  
beginFill(color:uint, alpha:Number = 1.0):void
今後の描画に使用する単色塗りを指定します.
GraphicsBase
  
beginGradientFill(type:String, color:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRation:Number = 0.0):void
今後の描画に使用するグラデーション塗りを指定します.
GraphicsBase
  
clear():void
Graphics オブジェクトに描画されているグラフィックをクリアします.
GraphicsBase
  
closePath():void
moveTo() や lineTo() で描画しているシェイプを閉じます.
GraphicsBase
  
curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
指定されたをコントロールポイント(controlX, controlY) を使用し、現在の描画位置から (anchorX, anchorY)まで2次ベジェ曲線を描画します.
GraphicsBase
  
drawCircle(x:Number, y:Number, radius:Number):void
円を描画します.
GraphicsBase
  
drawEllipse(x:Number, y:Number, width:Number, height:Number):void
楕円を描画します.
GraphicsBase
  
drawRect(x:Number, y:Number, width:Number, height:Number):void
矩形を描画します.
GraphicsBase
  
drawRoundRect(x:Number, y:Number, width:Number, height:Number, ellipseWidth:Number, ellipseHeight:Number):void
角丸矩形を描画します.
GraphicsBase
  
drawRoundRectComplex(x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void
各コーナーの角丸を指定して、角丸矩形を描画します.
GraphicsBase
  
endFill():void
beginFill()、beginGradientFill()、または beginBitmapFill() メソッドへの最後の呼び出し以降に追加された線と曲線に塗りを適用します.
GraphicsBase
  
lineGradientStyle(type:String, colors:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRatio:Number = 0.0):void
線スタイルのグラデーションを指定します.
GraphicsBase
  
lineStyle(thickness_:Number = 0, color_:uint = 0, alpha_:Number = 1, pixelHinting_:Boolean = false, scaleMode_:String = "normal", caps_:String = null, joints_:String = null, miterLimit_:Number = 3):void
線のスタイルを指定します.
GraphicsBase
  
lineTo(x:Number, y:Number):void
現在の描画位置から (x, y) まで描画します.
GraphicsBase
  
moveTo(x:Number, y:Number):void
現在の描画位置を (x, y) に移動します.
GraphicsBase
  
moveToLast():void
現在の描画位置へ moveTo() します.
GraphicsBase
  
noLineStyle():void
線が描画されないようにします.
GraphicsBase
Protected Methods
 MethodDefined by
  
$clear():void
graphics.clear を出力値として使用する場合にoverrideします.
GraphicsBase
  
$closePath():void
closePath の値を出力値として使用する場合にoverrideします.
GraphicsBase
  
$curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
graphics.curveTo の値を出力値として使用する場合にoverrideします.
GraphicsBase
  
$lineTo(x:Number, y:Number):void
graphics.lineTo の値を出力値として使用する場合にoverrideします.
GraphicsBase
  
$moveTo(x:Number, y:Number):void
graphics.moveTo の値を出力値として使用する場合にoverrideします.
GraphicsBase
  
$point(x:Number, y:Number, color:uint, alpha:Number = 1.0):void
点の描画メソッドです.出力値として使用する場合にoverrideします.
GraphicsBase
Property detail
_capsproperty
public var _caps:String
capsproperty 
caps:String  [read-write]

線の終端のキャップの種類を指定する CapsStyle クラスの値を示します. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get caps():String
    public function set caps(value:String):void

See also

flash.display.CapsStyle
default_gradient_matrixproperty 
public var default_gradient_matrix:Matrix
_fill_alphaproperty 
public var _fill_alpha:Number
fillAlphaproperty 
fillAlpha:Number  [read-write]

塗りの透明度を示します.有効な値は 0~1 です. 指定の色で描画する場合は、beignFill() メソッド の代わりに applyFill() メソッド を使用します.

Implementation
    public function get fillAlpha():Number
    public function set fillAlpha(value:Number):void
_fill_colorproperty 
public var _fill_color:uint
fillColorproperty 
fillColor:uint  [read-write]

塗りの色を示します. 指定の色で描画する場合は、beignFill() メソッド の代わりに applyFill() メソッド を使用します.

Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
_gcproperty 
protected var _gc:Graphics
graphicsproperty 
graphics:Graphics  [read-write]

描画対象となる Graphics を示します. [get graphics()は削除するかも]

Implementation
    public function get graphics():Graphics
    public function set graphics(value:Graphics):void
_jointsproperty 
public var _joints:String
jointsproperty 
joints:String  [read-write]

角で使用する接合点の外観の種類を指定する JointStyle クラスの値を示します. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get joints():String
    public function set joints(value:String):void

See also

flash.display.JointStyle
_lastCtrlXproperty 
protected var _lastCtrlX:Number
lastCtrlXproperty 
lastCtrlX:Number  [read-only]

Implementation
    public function get lastCtrlX():Number
_lastCtrlYproperty 
protected var _lastCtrlY:Number
lastCtrlYproperty 
lastCtrlY:Number  [read-only]

Implementation
    public function get lastCtrlY():Number
_lastXproperty 
protected var _lastX:Number
lastXproperty 
lastX:Number  [read-only]

現在の描画位置 x 座標を示します.

Implementation
    public function get lastX():Number
_lastYproperty 
protected var _lastY:Number
lastYproperty 
lastY:Number  [read-only]

現在の描画位置 y 座標を示します.

Implementation
    public function get lastY():Number
_miterLimitproperty 
public var _miterLimit:Number
miterLimitproperty 
miterLimit:Number  [read-write]

マイターが切り取られる限度を示す数値を示します. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get miterLimit():Number
    public function set miterLimit(value:Number):void
_pixelHintingproperty 
public var _pixelHinting:Boolean
pixelHintingproperty 
pixelHinting:Boolean  [read-write]

線をヒンティングするかどうかを示します. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get pixelHinting():Boolean
    public function set pixelHinting(value:Boolean):void
_scaleModeproperty 
public var _scaleMode:String
scaleModeproperty 
scaleMode:String  [read-write]

使用する拡大 / 縮小モードを指定する LineScaleMode クラスの値を示します. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get scaleMode():String
    public function set scaleMode(value:String):void

See also

flash.display.LineScaleMode
_startXproperty 
protected var _startX:Number
startXproperty 
startX:Number  [read-only]

Implementation
    public function get startX():Number
_startYproperty 
protected var _startY:Number
startYproperty 
startY:Number  [read-only]

Implementation
    public function get startY():Number
_stroke_alphaproperty 
public var _stroke_alpha:Number
strokeAlphaproperty 
strokeAlpha:Number  [read-write]

線の透明度を示します.有効な値は 0~1 です. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get strokeAlpha():Number
    public function set strokeAlpha(value:Number):void
_stroke_colorproperty 
public var _stroke_color:uint
strokeColorproperty 
strokeColor:uint  [read-write]

線の色を示します. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get strokeColor():uint
    public function set strokeColor(value:uint):void
_stroke_doproperty 
protected var _stroke_do:Boolean
_thicknessproperty 
public var _thickness:Number
thicknessproperty 
thickness:Number  [read-write]

線の太さを示します.有効な値は 0~255 です. 適用するには、applyLineStyle() メソッドを実行する必要があります.

Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void
Constructor detail
GraphicsBase()constructor
public function GraphicsBase(gc:Graphics)

新しい GraphicsBase クラスのインスタンスを生成します.

Parameters
gc:Graphics — 描画対象となる Graphics を指定します
Method detail
$clear()method
protected function $clear():void

graphics.clear を出力値として使用する場合にoverrideします.

$closePath()method 
protected function $closePath():void

closePath の値を出力値として使用する場合にoverrideします.

$curveTo()method 
protected function $curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void

graphics.curveTo の値を出力値として使用する場合にoverrideします.

Parameters
controlX:Number
 
controlY:Number
 
anchorX:Number
 
anchorY:Number
$lineTo()method 
protected function $lineTo(x:Number, y:Number):void

graphics.lineTo の値を出力値として使用する場合にoverrideします.

Parameters
x:Number
 
y:Number
$moveTo()method 
protected function $moveTo(x:Number, y:Number):void

graphics.moveTo の値を出力値として使用する場合にoverrideします.

Parameters
x:Number
 
y:Number
$point()method 
protected function $point(x:Number, y:Number, color:uint, alpha:Number = 1.0):void

点の描画メソッドです.出力値として使用する場合にoverrideします.

Parameters
x:Number
 
y:Number
 
color:uint
 
alpha:Number (default = 1.0)
applyFill()method 
public function applyFill():void

指定されている塗りで beginFill() を実行します.

applyLineStyle()method 
public function applyLineStyle():void

指定されている線のスタイルをを適用します.

beginBitmapFill()method 
public function beginBitmapFill(bitmap:BitmapData, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false):void

描画領域をビットマップイメージで塗りつぶします.

Parameters
bitmap:BitmapData
 
matrix:Matrix (default = null)
 
repeat:Boolean (default = true)
 
smooth:Boolean (default = false)
beginFill()method 
public function beginFill(color:uint, alpha:Number = 1.0):void

今後の描画に使用する単色塗りを指定します.

Parameters
color:uint
 
alpha:Number (default = 1.0)
beginGradientFill()method 
public function beginGradientFill(type:String, color:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRation:Number = 0.0):void

今後の描画に使用するグラデーション塗りを指定します.

Parameters
type:String
 
color:Array
 
alphas:Array
 
ratios:Array
 
matrix:Matrix (default = null)
 
spreadMethod:String (default = "pad")
 
interpolationMethod:String (default = "rgb")
 
focalPointRation:Number (default = 0.0)
clear()method 
public function clear():void

Graphics オブジェクトに描画されているグラフィックをクリアします.

closePath()method 
public function closePath():void

moveTo() や lineTo() で描画しているシェイプを閉じます. closePath()メソッドにより、 moveTo() で指定した座標まで lineTo() されます.

curveTo()method 
public function curveTo(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void

指定されたをコントロールポイント(controlX, controlY) を使用し、現在の描画位置から (anchorX, anchorY)まで2次ベジェ曲線を描画します.

Parameters
controlX:Number
 
controlY:Number
 
anchorX:Number
 
anchorY:Number
drawCircle()method 
public function drawCircle(x:Number, y:Number, radius:Number):void

円を描画します.

Parameters
x:Number
 
y:Number
 
radius:Number
drawEllipse()method 
public function drawEllipse(x:Number, y:Number, width:Number, height:Number):void

楕円を描画します.

Parameters
x:Number
 
y:Number
 
width:Number
 
height:Number
drawRect()method 
public function drawRect(x:Number, y:Number, width:Number, height:Number):void

矩形を描画します.

Parameters
x:Number
 
y:Number
 
width:Number
 
height:Number
drawRoundRect()method 
public function drawRoundRect(x:Number, y:Number, width:Number, height:Number, ellipseWidth:Number, ellipseHeight:Number):void

角丸矩形を描画します.

Parameters
x:Number
 
y:Number
 
width:Number
 
height:Number
 
ellipseWidth:Number
 
ellipseHeight:Number
drawRoundRectComplex()method 
public function drawRoundRectComplex(x:Number, y:Number, width:Number, height:Number, topLeftRadius:Number, topRightRadius:Number, bottomLeftRadius:Number, bottomRightRadius:Number):void

各コーナーの角丸を指定して、角丸矩形を描画します.

Parameters
x:Number
 
y:Number
 
width:Number
 
height:Number
 
topLeftRadius:Number
 
topRightRadius:Number
 
bottomLeftRadius:Number
 
bottomRightRadius:Number
endFill()method 
public function endFill():void

beginFill()、beginGradientFill()、または beginBitmapFill() メソッドへの最後の呼び出し以降に追加された線と曲線に塗りを適用します.

lineGradientStyle()method 
public function lineGradientStyle(type:String, colors:Array, alphas:Array, ratios:Array, matrix:Matrix = null, spreadMethod:String = "pad", interpolationMethod:String = "rgb", focalPointRatio:Number = 0.0):void

線スタイルのグラデーションを指定します.

Parameters
type:String
 
colors:Array
 
alphas:Array
 
ratios:Array
 
matrix:Matrix (default = null)
 
spreadMethod:String (default = "pad")
 
interpolationMethod:String (default = "rgb")
 
focalPointRatio:Number (default = 0.0)
lineStyle()method 
public function lineStyle(thickness_:Number = 0, color_:uint = 0, alpha_:Number = 1, pixelHinting_:Boolean = false, scaleMode_:String = "normal", caps_:String = null, joints_:String = null, miterLimit_:Number = 3):void

線のスタイルを指定します.

Parameters
thickness_:Number (default = 0)
 
color_:uint (default = 0)
 
alpha_:Number (default = 1)
 
pixelHinting_:Boolean (default = false)
 
scaleMode_:String (default = "normal")
 
caps_:String (default = null)
 
joints_:String (default = null)
 
miterLimit_:Number (default = 3)
lineTo()method 
public function lineTo(x:Number, y:Number):void

現在の描画位置から (x, y) まで描画します.

Parameters
x:Number
 
y:Number
moveTo()method 
public function moveTo(x:Number, y:Number):void

現在の描画位置を (x, y) に移動します.

Parameters
x:Number
 
y:Number
moveToLast()method 
public function moveToLast():void

現在の描画位置へ moveTo() します.

noLineStyle()method 
public function noLineStyle():void

線が描画されないようにします.