DrawImporter lets you import an OpenOffice Draw document into a Diagram or DiagramDocument object.
Namespace: com.mindfusion.diagramming.importers
Package: com.mindfusion.diagramming.importers
Java
![]() |
---|
public class DrawImporter |
The DrawImporter class can import .odg files, created by the OpenOffice Draw vector graphics editor. In order to use it, you must import the com.mindfusion.diagramming.importers namespace.
Various overloads of the import method can be used to import the OpenOffice drawing into a DiagramDocument whose pages correspond to the Draw pages, or into a single Diagram whose content is merged from all imported pages.
DrawImporter supports shapes from the General and Flowchart shape palettes in Draw. For each node shape from the .odg file, the importer creates a ShapeNode object whose Shape, Text, Brush and Pen properties are set to values corresponding to the imported OpenOffice shape. For each connector shape, the importer creates a DiagramLink object whose Origin and Destination are set to the corresponding imported nodes, and whose ControlPoints reflect the geometry of the connector.
java.lang.Object
com.mindfusion.diagramming.importers.DrawImporter