| Package | com.zavoo.svg.nodes |
| Class | public class SVGRectNode |
| Inheritance | SVGRectNode SVGNode flash.display.Sprite |
| Method | Defined by | ||
|---|---|---|---|
|
SVGRectNode(xml:XML)
| SVGRectNode | ||
![]() |
addChild(child:DisplayObject):DisplayObject
Track nodes as they are added so we know when to send the RENDER_DONE event
| SVGNode | |
![]() |
getAttribute(attribute:*, defaultValue:* = null):*
| SVGNode | |
![]() |
getHeight():Number
Get height calculated from _minY and _maxY
| SVGNode | |
![]() |
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 | |
![]() |
getWidth():Number
Get width calculated from _minX and _maxX
| 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 | ||
|---|---|---|---|
![]() |
checkX(value:Number):void
Check value of x against _minX and _maxX,
Update values when appropriate
| SVGNode | |
![]() |
checkY(value:Number):void
Check value of y against _minY and _maxY,
Update values when appropriate
| SVGNode | |
![]() |
clearChildren():void
Remove all child nodes
| SVGNode | |
![]() |
draw():void
Clear current graphics and call runGraphicsCommands to render SVG element
| SVGNode | |
|
generateGraphicsCommands():void
Generate graphics commands to draw a rectangle
| SVGRectNode | ||
![]() |
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 | |
![]() |
onMouseClick(event:MouseEvent):void
| SVGNode | |
![]() |
onMouseDown(event:MouseEvent):void
| SVGNode | |
![]() |
onMouseMove(event:MouseEvent):void
| SVGNode | |
![]() |
onMouseOut(event:MouseEvent):void
| SVGNode | |
![]() |
onMouseOver(event:MouseEvent):void
| SVGNode | |
![]() |
onMouseUp(event:MouseEvent):void
| SVGNode | |
![]() |
onNodeAdded(event:Event):void
If node has an "id" attribute, register it with the root node
| SVGNode | |
![]() |
onNodeRemoved(event:Event):void
| SVGNode | |
![]() |
parse():void
Parse the SVG XML.
| SVGNode | |
![]() |
redrawNode(event:Event):void
Triggers on ENTER_FRAME event
Redraws node graphics if _invalidDisplay == true
| SVGNode | |
![]() |
runGraphicsCommands():void
Execute graphics commands contained in var _graphicsCommands
| SVGNode | |
![]() |
setAttributes():void
Load attributes/styling from the XML.
| SVGNode | |
![]() |
setupEvents():void
| SVGNode | |
![]() |
setupFilters():void
Add any assigned filters to node
| SVGNode | |
![]() |
transformNode():void
Perform transformations defined by the transform attribute
| SVGNode | |