| Package | com.zavoo.svg.nodes |
| Class | public class SVGTextNode |
| Inheritance | SVGTextNode SVGNode flash.display.Sprite |
| Subclasses | SVGTspanNode |
| Method | Defined by | ||
|---|---|---|---|
|
SVGTextNode(xml:XML)
| SVGTextNode | ||
![]() |
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
Add _textBitmap to node
| SVGTextNode | ||
![]() |
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
Get any child text (not text inside child nodes)
If this node has any text create a TextField at this._textField
Call SVGNode.parse()
| SVGTextNode | ||
![]() |
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
Call SVGNode.setAttributes()
If this node contains text load text format (font, font-size, color, etc...)
Render text to a bitmap and add bitmap to node
| SVGTextNode | ||
![]() |
setupFilters():void
Add any assigned filters to node
| SVGNode | |
![]() |
transformNode():void
Perform transformations defined by the transform attribute
| SVGNode | |
| SVGTextNode | () | constructor |
public function SVGTextNode(xml:XML)Parameters
xml:XML |
| draw | () | method |
protected override function draw():voidAdd _textBitmap to node
| parse | () | method |
protected override function parse():voidGet any child text (not text inside child nodes) If this node has any text create a TextField at this._textField Call SVGNode.parse()
| setAttributes | () | method |
protected override function setAttributes():voidCall SVGNode.setAttributes() If this node contains text load text format (font, font-size, color, etc...) Render text to a bitmap and add bitmap to node