MindFusion.Java Package Programmer's Guide
SvgNode Class
Remarks See Also
 






Represents nodes that can render SVG drawings.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public class SvgNode
    extends ShapeNode

 Remarks

The SvgNode class represents nodes that can display SVG drawings in addition to the rendering provided by the base ShapeNode class. The SVG drawing is rendered after the associated Image and just before the drawNode event is raised for Additional custom drawing.

The SVG drawing of a node is specified through its Content property. The SVG elements are loaded and associated with the node through an SvgContent object, which should be initialized and then assigned to this property.

The following code illustrates how to load an SVG graphics from a local file and associate it with an existing SvgNode (referenced by the svgNode variable):

Java  Copy Code

SvgContent content = new SvgContent();
content.parse("drawing.svg");
svgNode.setContent(content);

 Inheritance Hierarchy

java.lang.Object
    com.mindfusion.diagramming.DiagramItem
        com.mindfusion.diagramming.DiagramNode
            com.mindfusion.diagramming.ShapeNode
                com.mindfusion.diagramming.SvgNode

 See Also

SvgNode Members
com.mindfusion.diagramming Namespace