Sorry to ask so many questions, but I am relatively new to SVG development.
I have read about the SVG foreignObject element and I am wondering if
it is proper to integrate that with the proposed embedded Swing tag. I
am not exactly sure how the foreignObject element is intended to be
used. There is an example in the SVG specification, but it is relatively
simplistic. So, if I were to use the foreignObject element, in
combination with the switch element as described in the specification,
would it look something like this?
<switch>
<!-- Draw the JButton here is the extension to Batik is available. -->
<foreignObject width="100" height="50"
requiredExtensions="http://mydomain.com/SVGExtenstions/BatikSwing">
<batikSwing:javaAWTComponent
style="class:javax.swing.JButton;foreground:red;text:Click Here"/>
</foreignObject>
<!-- Draw a red rectangle with an error message to indicate -->
<!-- the the JButton could not be rendered. -->
<g>
<rect width="100" height="50" style="fill:red"/>
<text>JButton Goes Here.</text>
</g>
</switch>
Is this the correct approach to solving this sort of problem?
If so, how do I proceed to tell Batik about the extension with the URI
http://mydomain.com/SVGExtenstions/BatikSwing ?
Thanks again,
Warren
Beer is proof that God loves us and wants us to be happy.
--Benjamin Franklin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]