Packagefrocessing.shape
Classpublic class FShapeContainer
InheritanceFShapeContainer Inheritance AbstractFShape Inheritance CanvasStyleAdapter Inheritance Object
Implements IFShapeContainer
Subclasses FShapeSVG, FShapeUse

Shape Container.



Public Properties
 PropertyDefined By
 Inheritedcaps : String
stroke caps.
AbstractFShape
  commands : Array
[override] [read-only] get childs path commannds.
FShapeContainer
 Inheritedfill : ICanvasFill
fill stye object.
AbstractFShape
 InheritedfillAlpha : Number
fill alpha.
AbstractFShape
 InheritedfillColor : uint
fill color.
AbstractFShape
 InheritedfillEnabled : Boolean
fill style enabled.
AbstractFShape
  height : Number
[override] [read-only]
FShapeContainer
 Inheritedjoints : String
stroke joints.
AbstractFShape
  left : Number
[override] [read-only]
FShapeContainer
 Inheritedmatrix : Matrix
transform matrix( not clone ).
AbstractFShape
 InheritedmiterLimit : Number
stroke miterLimit.
AbstractFShape
 Inheritedname : String
shape object name(id).
AbstractFShape
 Inheritedparent : IFShapeContainer
parent shape container.
AbstractFShape
 InheritedpixelHinting : Boolean
stroke pixelHinting
AbstractFShape
 InheritedscaleMode : String
stroke scaleMode.
AbstractFShape
 Inheritedstroke : ICanvasStroke
stroke style object.
AbstractFShape
 InheritedstrokeAlpha : Number
stroke alpha.
AbstractFShape
 InheritedstrokeColor : uint
stroke color.
AbstractFShape
 InheritedstrokeEnabled : Boolean
stroke style enabled.
AbstractFShape
 InheritedstyleEnabled : Boolean
[read-only]
AbstractFShape
 Inheritedthickness : Number
stroke thickness.
AbstractFShape
  top : Number
[override] [read-only]
FShapeContainer
 InheriteduserData : Object
AbstractFShape
  vertices : Array
[override] [read-only] get childs path data.
FShapeContainer
  viewbox : FViewBox
FShapeContainer
 Inheritedvisible : Boolean
shape visible.
AbstractFShape
  width : Number
[override] [read-only]
FShapeContainer
Public Methods
 MethodDefined By
  
FShapeContainer(parent_group:IFShapeContainer = null)
FShapeContainer
  
add shape object to the container.
FShapeContainer
 Inherited
applyMatrix(mat:Matrix):void
apply matrix( prepend mat to current matrix ).
AbstractFShape
  
[override]
FShapeContainer
  
drawGraphics(gc:Graphics):void
[override] the container does not draw anything.
FShapeContainer
  
[override]
FShapeContainer
  
findChild(target:String):IFShape
find child by name.
FShapeContainer
  
getChild(target:String):IFShape
get child by name.
FShapeContainer
  
getChildAt(index:int):IFShape
get child by index.
FShapeContainer
  
get children number.
FShapeContainer
  
remove shape object from the container.
FShapeContainer
 Inherited
reset transfrom.
AbstractFShape
 Inherited
rotate(angle:Number):void
rotate shape.
AbstractFShape
 Inherited
scale(x:Number, y:Number):void
scale shape.
AbstractFShape
  
toSprite():Sprite
[override] make Sprite instance including child shapes.
FShapeContainer
 Inherited
translate(x:Number, y:Number):void
translate shape.
AbstractFShape
 Inherited
update shape rectangle.( left, top, width, height )
AbstractFShape
Property Detail
commandsproperty
commands:Array  [read-only] [override]

get childs path commannds.


Implementation
    public function get commands():Array
heightproperty 
height:Number  [read-only] [override]


Implementation
    public function get height():Number
leftproperty 
left:Number  [read-only] [override]


Implementation
    public function get left():Number
topproperty 
top:Number  [read-only] [override]


Implementation
    public function get top():Number
verticesproperty 
vertices:Array  [read-only] [override]

get childs path data.


Implementation
    public function get vertices():Array
viewboxproperty 
public var viewbox:FViewBox

widthproperty 
width:Number  [read-only] [override]


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

Parameters
parent_group:IFShapeContainer (default = null)
Method Detail
addChild()method
public function addChild(shape:IFShape):IFShape

add shape object to the container.

Parameters

shape:IFShape

Returns
IFShape
disableStyle()method 
override public function disableStyle():void

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

the container does not draw anything.

Parameters

gc:Graphics

enableStyle()method 
override public function enableStyle():void

findChild()method 
public function findChild(target:String):IFShape

find child by name. findChild() seek in parent container too.

Parameters

target:String

Returns
IFShape
getChild()method 
public function getChild(target:String):IFShape

get child by name.

Parameters

target:String

Returns
IFShape
getChildAt()method 
public function getChildAt(index:int):IFShape

get child by index.

Parameters

index:int

Returns
IFShape
getChildCount()method 
public function getChildCount():uint

get children number.

Returns
uint
removeChild()method 
public function removeChild(shape:IFShape):IFShape

remove shape object from the container.

Parameters

shape:IFShape

Returns
IFShape
toSprite()method 
override public function toSprite():Sprite

make Sprite instance including child shapes.

Returns
Sprite