On Tue, 25 Sep 2001 15:22:36 Thomas E Deweese wrote:
> What about printing the 'img'? Is it a GraphicsNodeRable8Bit?
it is
org.apache.batik.ext.awt.image.renderable.RedRable@aeb74
> Since I still can't reproduce the problem (is it possible there is
> some sort of build issue?). Can you try adding the following method
> into SVGImageElementBridge, and calling it from createRasterImageNode
> immediately after the call to readURL: Filter img = reg.readURL(purl,
> extractColorSpace(e, ctx)); printFilterTree(img, "");
>
> ---
>
> protected static void printFilterTree(Filter filt, String pref) {
> System.out.println(pref + filt);
> java.util.Vector v = filt.getSources();
> java.util.Iterator i = v.iterator();
> while (i.hasNext())
> printFilterTree((Filter)i.next(), pref+" ");
> }
this is the result
- print filter
org.apache.batik.ext.awt.image.renderable.RedRable@aeb74
- end print filter
> KL> The SVGImageElementBridge then gets the
> KL> SVG_BROKEN_LINK_DOCUMENT_PROPERTY which is not set by the Default
> KL> one (I can't see where the value is coming from, maybe it is a
> KL> default).
>
> what do you mean by 'a default'? The only place this is set in my
> code base is in SVGBrokenLinkProvider and it is always given a value
> of the SVGDocument to use.
The object returned is this
java.lang.Object@3b494b:class java.lang.Object
and this statement
System.out.println("test:" + img.getProperty("blah"));
prints this
test:java.lang.Object@3b494b
So it is the same object and I presume you never set the property "blah".
So maybe this is a jvm issue.
I am running jdk1.3.0_02 on linux.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]