Dear Cameron,
Thank you so much for your time and help. It works great now.
Kind regards,
Qian
On Sat, 2007-09-15 at 11:18 +1000, Cameron McCormack wrote:
> Hi Qian.
>
> Qian Li:
> > 1. I am trying to add an rect to the SVGDocument and then display it in the
> > JFrame.
> > The JSVGCanvas can only display things which are on the main.svg, I cannot
> > get it to
> > display the new rect element which i have just added. I hope someone would
> > help me out.
> > Thank you so much. The source code appended in the end of the message.
>
> The element that you create must be in the SVG namespace. That means
> that you must use the createElementNS function rather than
> createElement:
>
> Element rectangle =
> svgDoc.createElementNS("http://www.w3.org/2000/svg", "rect");
>
> See http://jwatt.org/svg/authoring/#namespace-aware-methods for more
> details.
>
> > 2. I cannot find the org.w3c.dom.svg.SVGDocument java source and
> > documentation in batik 1.7.
> > Is it only available in batik 1.5? Does anyone know where I can find it?
>
> Since the 1.7beta1 release, the W3C SVG DOM interfaces have been taken
> from a jar provided by the Apache XML Graphics Commons project, rather
> than being included in Batik’s repository. This means that javadocs
> don’t get generated for them, unfortunately.
>
> There are some javadocs from the 1.5 release online here:
>
> http://www.yworks.com/products/yDoc/showcase/batik-1.5/
>
> The interfaces won’t have changed since then.
>
--
Qian Li
Gulfstream Software,
Hopeman,
Moray
Email: [EMAIL PROTECTED]
Disclaimer
Gulfstream Software Ltd is a limited company incorporated in Scotland.
The contents of this e-mail are privileged and/or confidential. If you
are not the intended recipient, please notify the sender and ensure
this e-mail is deleted and not read, copied or disclosed. It is your
responsibility to scan this e-mail and any attachments for computer
viruses or other defects. Gulfstream Software Ltd does not accept
liability for any loss or damage which may result from this e-mail or
any attachment.
E-mail is not secure and can be intercepted, corrupted or amended.
Gulfstream Software Ltd does not accept liability for errors or
omissions arising as a result of interrupted or defective transmission.
Any views, opinions, conclusions or other information in this e-mail
which do not relate to the business of Gulfstream Software Ltd are not
authorised by Gulfstream Software Ltd.
Unless specifically stated and authorised by Gulfstream Software Ltd,
nothing in this e-mail shall be taken to be an offer or acceptance of
any contract of any nature. Under the Regulation of Investigatory
Powers Act 2000 Gulfstream Software Ltd's e-mail and internet systems
is subject to random monitoring and recording by or on behalf of
Gulfstream Software Ltd.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]