Package | com.zavoo.svg.nodes |
Class | public class SVGUseNode |
Inheritance | SVGUseNode ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | svgRoot : SVGRoot
Recursively searches for the root node
| SVGNode | |
xml : XML [write-only]
Store a copy of the original XML in _useXML
Set SVGNode.xml
| SVGUseNode |
Method | Defined by | ||
---|---|---|---|
SVGUseNode(xml:XML)
| SVGUseNode | ||
![]() |
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
Clear current graphics and call runGraphicsCommands to render SVG element
| SVGNode | |
![]() |
generateGraphicsCommands():void
Called to generate AS3 graphics commands from the SVG instructions
| SVGNode | |
![]() |
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
Parse the SVG XML.
| SVGNode | |
redrawNode(event:Event):void
If _symbol revision has changed, reload element
Call SVGNode.redrawNode()
| SVGUseNode | ||
registerId(event:Event):void
SVGUseNode is a copy, do not register
| SVGUseNode | ||
![]() |
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 |
xml | property |
xml:XML
[write-only]Store a copy of the original XML in _useXML Set SVGNode.xml
Implementation public function set xml(value:XML):void
SVGUseNode | () | constructor |
public function SVGUseNode(xml:XML)
Parameters
xml:XML |
redrawNode | () | method |
protected override function redrawNode(event:Event):void
If _symbol revision has changed, reload element Call SVGNode.redrawNode()
Parametersevent:Event |
registerId | () | method |
protected override function registerId(event:Event):void
SVGUseNode is a copy, do not register
Parametersevent:Event |