Have manged to find SVG12DOMImplementation namespace which works for
creating the elements and the document but I now get the following:
java.lang.NullPointerException
at
org.apache.batik.bridge.svg12.DefaultXBLManager.stopProcessing(Unknown
Source)
at org.apache.batik.dom.AbstractDocument.setXBLManager(Unknown
Source)
at
org.apache.batik.bridge.UpdateManager.initializeScriptingEnvironment(Unknown
Source)
at org.apache.batik.bridge.UpdateManager.<init>(Unknown Source)
at
org.apache.batik.swing.svg.AbstractJSVGComponent.startSVGLoadEventDispatcher(Unknown
Source)
at
org.apache.batik.swing.svg.AbstractJSVGComponent$SVGListener.gvtBuildCompleted(Unknown
Source)
at org.apache.batik.swing.svg.GVTTreeBuilder$2.dispatch(Unknown
Source)
at org.apache.batik.util.EventDispatcher.dispatchEvent(Unknown
Source)
at org.apache.batik.util.EventDispatcher.fireEvent(Unknown Source)
at org.apache.batik.util.EventDispatcher$1.run(Unknown Source)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
from somewhere deep inside SVG12 implementation. Am not too sure what
starts the exception in the EventDispatchThread but will try and find out,
any initial ideas about why this would happen grateful. It occurs as the
new SVG Elements are being drawn I think.
Tom
On Wed, 23 Jan 2008 12:56:49 -0000, Tom McCallum <[EMAIL PROTECTED]>
wrote:
Hi,
I am trying to use the FlowText tags in my SVG document, similar to the
samples/extensions/flowTextAlign.svg. In my current trials with Batik I
have been using the following namespace
String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI
but when I try to create a FlowTextElement it given me the following:
org.w3c.dom.DOMException: The current document is unable to create an
element of the requested type (namespace: http://www.w3.org/2000/svg,
name: flowText).
Can someone please tell me what namespace I need to use to create these
elements, and also are there any changes to the way I am creating the
basic document so that I can create both SVG and Extension elements
besides the namespace?
DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
Document doc = impl.createDocument(svgNS,
SVGConstants.SVG_SVG_TAG, null);
in order to be able to use these Flow elements?
Thanks in advance for your help,
Tom
--
Thomas McCallum
Director
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]