>>>>> "AFB" == Antonio Fiol Bonn�n <[EMAIL PROTECTED]> writes:
AFB> I have started to implement what I posted on my previous e-mail,
AFB> and my first try has been a simple transparent wrapper element.
I must say that I have a few reservations about the general
technique of adding new elements to SVG. I don't really know what
your constraints are but you might consider using a transformation
language like XSLT to map your custom grammer into standard SVG.
However if you really need to be able to use Java2D to do
rendering of the element this approach is probably the only feasable
one.
AFB> The idea:
AFB> <svg:svg> <ext:wrapper> <svg:circle /> </ext:wrapper> </svg:svg>
AFB> Or more precisely, as:
AFB> <svg:svg> <svg:g> <svg:circle /> </svg:g> </svg:svg>
AFB> What I did:
AFB> Created a DOM extension. Created a bridge extension. Created an
AFB> element. Created a bridge.
AFB> If I launch the browser loading a file which contains the
AFB> <ext:wrapper> thing, I see the constructors being called, for the
AFB> bridge, and for the element.
AFB> However, the bridge method for generating a GVT node are NEVER
AFB> called.
AFB> Why is that?
I suspect that you are not registering them with the DOM
implementation or the BridgeContext. If not you probably want to look
at batik.extensions.svg.BatikDomExtension, and
batik.extensions.svg.BatikBridgeExtension. Note that on top of
writing these classes you need to create a 'services' file, take a
look at the contents of 'xml-batik/resources/META-INF/services/', and
'http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service Provider'.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]