Hi,

I have check out the plugin org.topcased.modeler.export the last
version. The SVGExporter class contains compilation errors. As shown
below, I propose a solution which allow to export the graphics in SVG
format. But the result of export isn't perfect. The labels are too short
to see all text.

DOMSource domSource = new DOMSource(graphics.getRoot());
StreamResult streamResult = new StreamResult(os);
TransformerFactory tf = TransformerFactory.newInstance();
        
try {
        
        Transformer serializer = tf.newTransformer();
        serializer.setOutputProperty(OutputKeys.ENCODING,XML_ENCODING);
        serializer.setOutputProperty(OutputKeys.INDENT,"yes");
        serializer.transform(domSource, streamResult);
        
} catch (TransformerConfigurationException e) {
throw new ExportException("Error during the SVG export", e);
} catch (TransformerException e) {
throw new ExportException("Error during the SVG export", e);
} finally {
graphics.dispose();
}

Best regard.

-- 
David OUAGNE
INSERM UMRS 872, eq. 20 Université René Descartes PARIS FRANCE

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to