| Package | frocessing.shape |
| Class | public class FShapeSVGLoader |
| Inheritance | FShapeSVGLoader FShapeSVG FShapeContainer AbstractFShape CanvasStyleAdapter Object |
| Implements | IObjectLoader |
| Property | Defined By | ||
|---|---|---|---|
![]() | caps : String
stroke caps. | AbstractFShape | |
![]() | commands : Array [override] [read-only]
get childs path commannds. | FShapeContainer | |
![]() | fill : ICanvasFill
fill stye object. | AbstractFShape | |
![]() | fillAlpha : Number
fill alpha. | AbstractFShape | |
![]() | fillColor : uint
fill color. | AbstractFShape | |
![]() | fillEnabled : Boolean
fill style enabled. | AbstractFShape | |
![]() | height : Number [override] [read-only] | FShapeContainer | |
![]() | joints : String
stroke joints. | AbstractFShape | |
![]() | left : Number [override] [read-only] | FShapeContainer | |
![]() | 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 | |
| status : int [read-only]
load status. | FShapeSVGLoader | ||
![]() | 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 | |
| success : Boolean [read-only]
load completed. | FShapeSVGLoader | ||
![]() | thickness : Number stroke thickness. | AbstractFShape | |
![]() | top : Number [override] [read-only] | FShapeContainer | |
![]() | userData : Object | AbstractFShape | |
![]() | vertices : Array [override] [read-only]
get childs path data. | FShapeContainer | |
![]() | viewbox : FViewBox | FShapeContainer | |
![]() | visible : Boolean
shape visible. | AbstractFShape | |
![]() | width : Number [override] [read-only] | FShapeContainer | |
| Method | Defined By | ||
|---|---|---|---|
FShapeSVGLoader(url:String, loader:URLLoader = null, callback:Function = null) | FShapeSVGLoader | ||
![]() |
add shape object to the container. | FShapeContainer | |
![]() | applyMatrix(mat:Matrix):void
apply matrix( prepend mat to current matrix ). | AbstractFShape | |
![]() | disableStyle():void [override] | FShapeContainer | |
![]() | drawGraphics(gc:Graphics):void [override]
the container does not draw anything. | FShapeContainer | |
![]() | enableStyle():void [override] | FShapeContainer | |
![]() |
find child by name. | FShapeContainer | |
![]() | findSVGRoot(doc:XML):XML [static]
get root SVG Element
| FShapeSVG | |
![]() |
get child by name. | FShapeContainer | |
![]() | getChildAt(index:int):IFShape
get child by index. | FShapeContainer | |
![]() | getChildCount():uint
get children number. | FShapeContainer | |
![]() | [static]
parse circle element. | FShapeSVG | |
![]() | parseColor(attr:String):uint [static]
parse color attribute. | FShapeSVG | |
![]() | [static]
parse defs element. | FShapeSVG | |
![]() | [static]
parse ellipse element. | FShapeSVG | |
![]() | [static]
parse g element. | FShapeSVG | |
![]() | [static]
parse image element. | FShapeSVG | |
![]() | parseLength(attr:String, defaultValue:Number = 0):Number [static]
parse "length" attribute. | FShapeSVG | |
![]() | [static]
parse line element. | FShapeSVG | |
![]() | parseLinearGradient(doc:XML):FShapeGradient [static]
parse linearGradient element. | FShapeSVG | |
![]() | [static]
parse path element. | FShapeSVG | |
![]() | parsePoints(points:String):Array [static]
parse list of points attribute. | FShapeSVG | |
![]() | [static]
parse polygon element. | FShapeSVG | |
![]() | [static]
parse polyline element. | FShapeSVG | |
![]() | parseRadialGradient(doc:XML):FShapeGradient [static]
parse radialGradient element. | FShapeSVG | |
![]() | [static]
parse rect element. | FShapeSVG | |
![]() | [static]
parse svg element. | FShapeSVG | |
![]() | [static]
parse symbol element. | FShapeSVG | |
![]() | parseTransform(attr:String):FMatrix2D [static]
parse transform("transforms-list") attribute. | FShapeSVG | |
![]() | [static]
parse use element. | FShapeSVG | |
![]() |
remove shape object from the container. | FShapeContainer | |
![]() | resetMatrix():void
reset transfrom. | AbstractFShape | |
![]() | rotate(angle:Number):void
rotate shape. | AbstractFShape | |
![]() | scale(x:Number, y:Number):void
scale shape. | AbstractFShape | |
![]() | toSprite():Sprite [override]
make Sprite instance including child shapes. | FShapeContainer | |
![]() | translate(x:Number, y:Number):void
translate shape. | AbstractFShape | |
![]() | updateShapeGeom():void
update shape rectangle.( left, top, width, height )
| AbstractFShape | |
| status | property |
status:int [read-only] load status. 0:loading, 1:complete, -1:error
public function get status():int| success | property |
success:Boolean [read-only] load completed.
public function get success():Boolean| FShapeSVGLoader | () | Constructor |
public function FShapeSVGLoader(url:String, loader:URLLoader = null, callback:Function = null)Parameters
url:String | |
loader:URLLoader (default = null) | |
callback:Function (default = null) — callback on complete or error
|