Represents nodes that can render SVG drawings.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public class SvgNode |
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
![]() |
---|
SvgContent content = new SvgContent(); |
java.lang.Object
com.mindfusion.diagramming.DiagramItem
com.mindfusion.diagramming.DiagramNode
com.mindfusion.diagramming.ShapeNode
com.mindfusion.diagramming.SvgNode