Package | com.zavoo.svg.nodes |
Class | public class SVGSymbolNode |
Inheritance | SVGSymbolNode ![]() ![]() |
Subclasses | SVGDefsNode |
Property | Defined by | ||
---|---|---|---|
id : String [read-only]
| SVGSymbolNode | ||
revision : uint [read-only]
| SVGSymbolNode | ||
![]() | svgRoot : SVGRoot
Recursively searches for the root node
| SVGNode | |
xml : XML [write-only]
| SVGSymbolNode |
Method | Defined by | ||
---|---|---|---|
SVGSymbolNode(xml:XML)
| SVGSymbolNode | ||
![]() |
getStyle(name:String):String
Get a node style (ex: fill, stroke, etc..)
Also checks parent nodes for the value if it is not set in the current node.
| SVGNode | |
![]() |
invalidateDisplay():void
Force a redraw of a node and its children
| SVGNode | |
![]() |
setStyle(name:String, value:String):void
Set node style to new value
Updates SVG XML and then calls refreshGraphis()
| SVGNode |
Method | Defined by | ||
---|---|---|---|
![]() |
clearChildren():void
Remove all child nodes
| SVGNode | |
draw():void
| SVGSymbolNode | ||
generateGraphicsCommands():void
| SVGSymbolNode | ||
![]() |
getAttribute(attribute:*, defaultValue:* = null):*
| SVGNode | |
![]() |
loadAttribute(name:String, field:String = null):void
Load an XML attribute into the current node
| SVGNode | |
![]() |
loadStyle(name:String, field:String = null):void
Load an SVG style into the current node
| SVGNode | |
![]() |
nodeBeginFill():void
Called at the start of drawing an SVG element.
| SVGNode | |
![]() |
nodeEndFill():void
Called at the end of drawing an SVG element
| SVGNode | |
parse():void
| SVGSymbolNode | ||
![]() |
redrawNode(event:Event):void
Triggers on ENTER_FRAME event
Redraws node graphics if _invalidDisplay == true
| SVGNode | |
![]() |
registerId(event:Event):void
If node has an "id" attribute, register it with the root node
| SVGNode | |
![]() |
runGraphicsCommands():void
Execute graphics commands contained in var _graphicsCommands
| SVGNode | |
![]() |
setAttributes():void
Load attributes/styling from the XML.
| SVGNode | |
![]() |
setupFilters():void
Add any assigned filters to node
| SVGNode | |
![]() |
transformNode():void
Perform transformations defined by the transform attribute
| SVGNode |
id | property |
id:String
[read-only]Implementation
public function get id():String
revision | property |
revision:uint
[read-only]Implementation
public function get revision():uint
xml | property |
xml:XML
[write-only]Implementation
public function set xml(value:XML):void
SVGSymbolNode | () | constructor |
public function SVGSymbolNode(xml:XML)
Parameters
xml:XML |
draw | () | method |
protected override function draw():void
generateGraphicsCommands | () | method |
protected override function generateGraphicsCommands():void
parse | () | method |
protected override function parse():void