Yes. This is why JHotDraw uses the SVG file format.
You can wrap calls to JHotDraw SVGInputFormat.read() and SVGOutputFormat.write() into an implementation of com.thoughtworks.xstream.converters.Converter.
Hi Julien, Which version of JHotDraw are you using? (They are quite different). Here is an example program with JHotDraw 7: package ch.randelshofer.demo; import org.jhotdraw.draw.Drawing; import org.jhotdraw.samples.svg.SVGDrawingPanel; import org.jhotdraw.samples.svg.io.SVGInputFormat; import org.jhotdraw.samples.svg.io.SVGOutputFormat; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingUtilities; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent;...
Hi Julien, Which version of JHotDraw are you using? (They are quite different). Here is an example program with JHotDraw 7: package ch.randelshofer.demo; import org.jhotdraw.draw.Drawing; import org.jhotdraw.samples.svg.SVGDrawingPanel; import org.jhotdraw.samples.svg.io.SVGInputFormat; import org.jhotdraw.samples.svg.io.SVGOutputFormat; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingUtilities; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent;...
Adds CombinedPathFigure.
Fixes bug in Polynomials.
Fixes bug in Polynomials.