Package | frocessing.shape |
Class | public class FShapeSVG |
Inheritance | FShapeSVG FShapeContainer AbstractFShape CanvasStyleAdapter Object |
Subclasses | FShapeSVGLoader |
Elements supported.
not supported.
text module, font module, animation module, style module, clip module, mask modlue, filter module, color profile module, event, script, view, a, pattern, marker
Method | Defined By | ||
---|---|---|---|
FShapeSVG(doc:XML, parent:IFShapeContainer = null) | FShapeSVG | ||
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 |
FShapeSVG | () | Constructor |
public function FShapeSVG(doc:XML, parent:IFShapeContainer = null)
Parameters
doc:XML — structure or shape xml document.
| |
parent:IFShapeContainer (default = null ) — parent container
|
findSVGRoot | () | method |
public static function findSVGRoot(doc:XML):XML
get root SVG Element
Parameters
doc:XML |
XML |
parseCircle | () | method |
public static function parseCircle(doc:XML, parent:FShapeContainer = null):FShapeCircle
parse circle element.
http://www.w3.org/TR/SVG11/shapes.html#CircleElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShapeCircle |
See also
parseColor | () | method |
public static function parseColor(attr:String):uint
parse color attribute.
色指定を行う文字列を 24bit color に変換します.
http://www.w3.org/TR/SVG11/types.html#DataTypeColor
http://www.w3.org/TR/SVG11/types.html#ColorKeywords
Parameters
attr:String |
uint |
See also
parseDefs | () | method |
public static function parseDefs(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
parse defs element.
http://www.w3.org/TR/SVG11/struct.html#Heads
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
| |
target:FShapeContainer (default = null )
|
FShapeContainer |
See also
parseEllipse | () | method |
public static function parseEllipse(doc:XML, parent:FShapeContainer = null):FShapeEllipse
parse ellipse element.
http://www.w3.org/TR/SVG11/shapes.html#EllipseElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShapeEllipse |
See also
parseGroup | () | method |
public static function parseGroup(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
parse g element.
http://www.w3.org/TR/SVG11/struct.html#Groups
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
| |
target:FShapeContainer (default = null )
|
FShapeContainer |
See also
parseImage | () | method |
public static function parseImage(doc:XML, parent:FShapeContainer = null):AbstractFShape
parse image element.
http://www.w3.org/TR/SVG11/struct.html#ImageElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
AbstractFShape |
See also
parseLength | () | method |
public static function parseLength(attr:String, defaultValue:Number = 0):Number
parse "length" attribute. "length" is a "number" optionally followed immediately by a unit identifier.
単位付の数値をピクセル値に換算します.換算率はSVG仕様によります.
http://www.w3.org/TR/SVG11/types.html#DataTypeLength
http://www.w3.org/TR/SVG11/coords.html#Units
Parameters
attr:String | |
defaultValue:Number (default = 0 )
|
Number — pixel value
|
parseLine | () | method |
public static function parseLine(doc:XML, parent:FShapeContainer = null):FShapeLine
parse line element.
http://www.w3.org/TR/SVG11/shapes.html#LineElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShapeLine |
See also
parseLinearGradient | () | method |
public static function parseLinearGradient(doc:XML):FShapeGradient
parse linearGradient element.
http://www.w3.org/TR/SVG11/pservers.html#LinearGradients
Parameters
doc:XML |
FShapeGradient |
parsePath | () | method |
public static function parsePath(doc:XML, parent:FShapeContainer = null):FShape
parse path element.
http://www.w3.org/TR/SVG11/paths.html
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShape |
See also
parsePoints | () | method |
public static function parsePoints(points:String):Array
parse list of points attribute.
http://www.w3.org/TR/SVG11/shapes.html#PointsBNF
Parameters
points:String |
Array |
parsePolygon | () | method |
public static function parsePolygon(doc:XML, parent:FShapeContainer = null):FShape
parse polygon element.
http://www.w3.org/TR/SVG11/shapes.html#PolygonElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShape |
See also
parsePolyline | () | method |
public static function parsePolyline(doc:XML, parent:FShapeContainer = null):FShape
parse polyline element.
http://www.w3.org/TR/SVG11/shapes.html#PolylineElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShape |
See also
parseRadialGradient | () | method |
public static function parseRadialGradient(doc:XML):FShapeGradient
parse radialGradient element.
http://www.w3.org/TR/SVG11/pservers.html#RadialGradients
Parameters
doc:XML |
FShapeGradient |
parseRect | () | method |
public static function parseRect(doc:XML, parent:FShapeContainer = null):FShapeRect
parse rect element.
http://www.w3.org/TR/SVG11/shapes.html#RectElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
|
FShapeRect |
See also
parseSVG | () | method |
public static function parseSVG(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
parse svg element.
http://www.w3.org/TR/SVG11/struct.html#SVGElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
| |
target:FShapeContainer (default = null )
|
FShapeContainer |
See also
parseSymbol | () | method |
public static function parseSymbol(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
parse symbol element.
http://www.w3.org/TR/SVG11/struct.html#SymbolElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
| |
target:FShapeContainer (default = null )
|
FShapeContainer |
See also
parseTransform | () | method |
public static function parseTransform(attr:String):FMatrix2D
parse transform("transforms-list") attribute.
transform 属性の値(変換定義のリスト"transforms-list")を、Matrix に変換します.
http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
Parameters
attr:String |
FMatrix2D |
parseUse | () | method |
public static function parseUse(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
parse use element.
http://www.w3.org/TR/SVG11/struct.html#UseElement
Parameters
doc:XML | |
parent:FShapeContainer (default = null )
| |
target:FShapeContainer (default = null )
|
FShapeContainer |
See also