[daisy] Saving Hook for a Part Editor

Bruno Dumon bruno at outerthought.org
Fri May 9 12:07:53 CEST 2008


On Thu, 2008-05-08 at 13:30 +0200, Michael Hänni wrote:
> Hello
> 
> thank you for the hint for the saving hook. It works perfect.
> As a framework I'm using JHotDraw (http://www.jhotdraw.org).
> JHotDraw supports different data formats. Apart from an own format it 
> supports also .svg.
> Here is a  sample .svg-Applet: 
> http://www.randelshofer.ch/oop/jhotdraw/guide/Documentation/sample_svg_applet.html 
> 
> Here is a sample Drawing-Applet: 
> http://www.randelshofer.ch/oop/jhotdraw/guide/Documentation/sample_draw_applet.html 
> 
> 
> The prototype part editor for the SvgData part of the SvgDocument is 
> nearly finished.
> 
> As for the JHotDraw format ("Drawing xml") there is a lot more 
> functionality, I decided to create also an editor for this format. A new 
> challenge now is to write a serializer similar to the class 
> org.apache.cocoon.serialization.SVGSerializer to convert these files to 
> a bitmap image.
> 

One approach might be to convert it to SVG first, so you can keep using
the SVGSerializer. This has the advantage that if the browser supports
SVG, it can directly render the vector image, allow high-quality zooming
and printing.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought                            http://www.daisycms.org/
bruno at outerthought.org              http://www.kauriproject.org/



More information about the daisy mailing list