Packagefrocessing.shape
Classpublic class AbstractFShape
InheritanceAbstractFShape Inheritance CanvasStyleAdapter Inheritance Object
Implements IFShape
Subclasses FShape, FShapeCircle, FShapeContainer, FShapeEllipse, FShapeImage, FShapeLine, FShapeRect

Abstract Shape Object.



Public Properties
 PropertyDefined By
  caps : String
stroke caps.
AbstractFShape
  commands : Array
[read-only] shape path commands.
AbstractFShape
  fill : ICanvasFill
fill stye object.
AbstractFShape
  fillAlpha : Number
fill alpha.
AbstractFShape
  fillColor : uint
fill color.
AbstractFShape
  fillEnabled : Boolean
fill style enabled.
AbstractFShape
  height : Number
[read-only]
AbstractFShape
  joints : String
stroke joints.
AbstractFShape
  left : Number
[read-only]
AbstractFShape
  matrix : Matrix
transform matrix( not clone ).
AbstractFShape
  miterLimit : Number
stroke miterLimit.
AbstractFShape
  name : String
shape object name(id).
AbstractFShape
  parent : IFShapeContainer
parent shape container.
AbstractFShape
  pixelHinting : Boolean
stroke pixelHinting
AbstractFShape
  scaleMode : String
stroke scaleMode.
AbstractFShape
  stroke : ICanvasStroke
stroke style object.
AbstractFShape
  strokeAlpha : Number
stroke alpha.
AbstractFShape
  strokeColor : uint
stroke color.
AbstractFShape
  strokeEnabled : Boolean
stroke style enabled.
AbstractFShape
  styleEnabled : Boolean
[read-only]
AbstractFShape
  thickness : Number
stroke thickness.
AbstractFShape
  top : Number
[read-only]
AbstractFShape
  userData : Object
AbstractFShape
  vertices : Array
[read-only] shape path data.
AbstractFShape
  visible : Boolean
shape visible.
AbstractFShape
  width : Number
[read-only]
AbstractFShape
Public Methods
 MethodDefined By
  
AbstractFShape(parent_group:IFShapeContainer = null)
AbstractFShape
  
applyMatrix(mat:Matrix):void
apply matrix( prepend mat to current matrix ).
AbstractFShape
  
disable stroke and fill styles.
AbstractFShape
  
drawGraphics(gc:Graphics):void
draw the shape to graphics.
AbstractFShape
  
enable stroke and fill styles.
AbstractFShape
  
reset transfrom.
AbstractFShape
  
rotate(angle:Number):void
rotate shape.
AbstractFShape
  
scale(x:Number, y:Number):void
scale shape.
AbstractFShape
  
toSprite():Sprite
make new Sprite instance.
AbstractFShape
  
translate(x:Number, y:Number):void
translate shape.
AbstractFShape
  
update shape rectangle.( left, top, width, height )
AbstractFShape
Property Detail
capsproperty
caps:String

stroke caps.


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

See also

flash.display.CapsStyle
commandsproperty 
commands:Array  [read-only]

shape path commands.


Implementation
    public function get commands():Array
fillproperty 
fill:ICanvasFill

fill stye object.


Implementation
    public function get fill():ICanvasFill
    public function set fill(value:ICanvasFill):void
fillAlphaproperty 
fillAlpha:Number

fill alpha. solid fill is applyed.


Implementation
    public function get fillAlpha():Number
    public function set fillAlpha(value:Number):void
fillColorproperty 
fillColor:uint

fill color. solid fill is applyed.


Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
fillEnabledproperty 
fillEnabled:Boolean

fill style enabled.


Implementation
    public function get fillEnabled():Boolean
    public function set fillEnabled(value:Boolean):void
heightproperty 
height:Number  [read-only]


Implementation
    public function get height():Number
jointsproperty 
joints:String

stroke joints.


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

See also

flash.display.JointStyle
leftproperty 
left:Number  [read-only]


Implementation
    public function get left():Number
matrixproperty 
matrix:Matrix

transform matrix( not clone ).


Implementation
    public function get matrix():Matrix
    public function set matrix(value:Matrix):void
miterLimitproperty 
miterLimit:Number

stroke miterLimit.


Implementation
    public function get miterLimit():Number
    public function set miterLimit(value:Number):void
nameproperty 
name:String

shape object name(id).


Implementation
    public function get name():String
    public function set name(value:String):void
parentproperty 
parent:IFShapeContainer

parent shape container.


Implementation
    public function get parent():IFShapeContainer
    public function set parent(value:IFShapeContainer):void
pixelHintingproperty 
pixelHinting:Boolean

stroke pixelHinting


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

stroke scaleMode.


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

See also

flash.display.LineScaleMode
strokeproperty 
stroke:ICanvasStroke

stroke style object.


Implementation
    public function get stroke():ICanvasStroke
    public function set stroke(value:ICanvasStroke):void
strokeAlphaproperty 
strokeAlpha:Number

stroke alpha.


Implementation
    public function get strokeAlpha():Number
    public function set strokeAlpha(value:Number):void
strokeColorproperty 
strokeColor:uint

stroke color.


Implementation
    public function get strokeColor():uint
    public function set strokeColor(value:uint):void
strokeEnabledproperty 
strokeEnabled:Boolean

stroke style enabled.


Implementation
    public function get strokeEnabled():Boolean
    public function set strokeEnabled(value:Boolean):void
styleEnabledproperty 
styleEnabled:Boolean  [read-only]


Implementation
    public function get styleEnabled():Boolean
thicknessproperty 
thickness:Number

stroke thickness.


Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void
topproperty 
top:Number  [read-only]


Implementation
    public function get top():Number
userDataproperty 
public var userData:Object

verticesproperty 
vertices:Array  [read-only]

shape path data.


Implementation
    public function get vertices():Array
visibleproperty 
visible:Boolean

shape visible.


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
widthproperty 
width:Number  [read-only]


Implementation
    public function get width():Number
Constructor Detail
AbstractFShape()Constructor
public function AbstractFShape(parent_group:IFShapeContainer = null)

Parameters
parent_group:IFShapeContainer (default = null)
Method Detail
applyMatrix()method
public function applyMatrix(mat:Matrix):void

apply matrix( prepend mat to current matrix ).

Parameters

mat:Matrix

disableStyle()method 
public function disableStyle():void

disable stroke and fill styles.

drawGraphics()method 
public function drawGraphics(gc:Graphics):void

draw the shape to graphics.

Parameters

gc:Graphics

enableStyle()method 
public function enableStyle():void

enable stroke and fill styles.

resetMatrix()method 
public function resetMatrix():void

reset transfrom.

rotate()method 
public function rotate(angle:Number):void

rotate shape.

Parameters

angle:Number

scale()method 
public function scale(x:Number, y:Number):void

scale shape.

Parameters

x:Number
 
y:Number (default = NaN)

toSprite()method 
public function toSprite():Sprite

make new Sprite instance.

Returns
Sprite
translate()method 
public function translate(x:Number, y:Number):void

translate shape.

Parameters

x:Number
 
y:Number

updateShapeGeom()method 
public function updateShapeGeom():void

update shape rectangle.( left, top, width, height )