flowText.svg loads
properly within Squiggle
but i cannot get the "inside" text
to
render from my JApplet. if you executed
Squiggle w/out a {batik-extension.jar}
in the
<ext> directory you'd get the same
result.
i've been through the documentation and user-
list N X. AFAIK i
am following batik/java's
"Service" spec carefully.
SAMPLE CODE (Abbreviated):
SAXSVGDocumentFactory f=
new SAXSVGDocumentFactory();
Document myDoc= f.createDocument(myURI);
jSVGCanvas.setDocument(myDoc);
i've examined the batik source. it
looks like
using <SAXSVGDocumentFactory>
*automatically*
creates an SVGDOMImplementation
(default)
instance. although that *should* activate the
Service mechanism to load the DOM extensions,
i don't seem to load any. i have not
stepped
into the batik source, however when i examine
LinkedList of extensions at runtime, my list
has Zero length. please see
ExtensibleDOMImplementation.java:
protected static List
extensions = null;
protected synchronized static List getDomExtensions() {
if (extensions != null)
return extensions;
extensions = new LinkedList(); // attaches o.k.
Iterator iter = Service.providers(DomExtension.class);
protected synchronized static List getDomExtensions() {
if (extensions != null)
return extensions;
extensions = new LinkedList(); // attaches o.k.
Iterator iter = Service.providers(DomExtension.class);
while (iter.hasNext())
{ // as though test
always
fails
DomExtension de = (DomExtension)iter.next();
...
DomExtension de = (DomExtension)iter.next();
...
}
SAMPLE JARs:
myapplet.jar
------------
meta-inf/Manifest.mf
Class-Path:
batik-extension.jar myclasses.jar
meta-inf/Services/org.apache.batik.bridge.BridgeExtension (stolen
..)
meta-inf/Services/org.apache.batik.dom.DomExtension
(stolen ..)
batik-extension.jar
-------------------
stolen from batik
distribution
myclasses.jar
-------------
a whole bunch of my java
classes
if i
can get some insight into what i am
doing wrong with the DOM extensions
i'm
sure i can figure out how to load the
Bridge extensions.
anyone have any insights?
thanks.
- ken h.
