You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Torsten Knodt <to...@datas-world.de> on 2002/09/02 22:42:27 UTC

[RFC] new ImageMapTranscoder source

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Vincent (and others),
here is my actual version of my ImageMapTranscoder. It has been separated into 
serveral classes.
It now consists of:
- - A patch for the rasterizer to include itself
 (You can find this in one of my last mails. So I haven't added it to the 
mail. If you need it, simply ask me for it.)
- - A FileXMLSerializerFactory, which creates a ContentHandler which writes to a 
TranscoderOutput
 (This one requires to include an implementation for javax.xml.transform)
- - A PathGenerator, which generate "path events" to a PathListener
- - An AbstractPathListener which is an abstract class hearing to them
- - An AbstractFlattenedPathListener which is an abstract class hearing to 
flattened path events (only lines, no curves)
- - An AbstractIntegerPathListener which converts the last to integer's
- - An ImageMapTranscoder which uses SVGAbstractTranscoder, passs it's 
informations to the PathGenerator and writes a HTML ImageMap as SAX events to 
a ContentHandler provided by the FileXMLSerializerFactory.

First I had the idea to generate common xml code and use a xsl to generate the 
HTML Image Map. But then, this transcoder would have been a transformer in 
cocoon, not a serializer and it would be more work for me. Later this can be 
changed easily.

Questions/ Problems:
- - Getting descriptions for tags doesn't work. (why?)
- - What is the standard way to get the svg title elements? For description I 
use getDescription().
- - What is missing, until it can go into cvs?

With kind regards
	Torsten Knodt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9c80zvxZktkzSmiwRAu6+AJ4kqhPTKraMOzW4ZGqsaTpFbJI0CgCfR4oa
Htdfrf1hbXWjQoOwoiXpII0=
=XGMc
-----END PGP SIGNATURE-----