xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tisserand Romuald <romuald.tisser...@siemens.com>
Subject RE: Little example of my setSize problem
Date Fri, 04 Jun 2004 15:17:17 GMT
YYYEEEPPP, the problem is fixed.

I don't why, but the difference came from the "JSVGComponent.prevComponentSize" value. This
value is used in the "updateRenderingTransform" method to compute a shift of the draw. In
one case, this value was 0, 0 (bad case) and in the good one 1, 1.

This simple diffence made the graphic was shifted from 75 pixels in the 2 directions.

I know it is not the best code in the whole word, but I set the size of the "JSVGComponent"
to 1, 1 before the document loading and all works fine.

Is it a bug, a wrong code, an AWT problem, a Batik problem ? I don't know and probably will
never know.

If this could help someone...

-----Original Message-----
From: Tisserand Romuald [mailto:romuald.tisserand@siemens.com] 
Sent: jeudi 3 juin 2004 15:26
To: 'Batik Users'
Subject: RE: Little example of my setSize problem


Nobody can help me ?

Can somebody tell me what is the purpose of the "JSVGComponent.prevComponentSize" field ?
Because this value is different between my "good" case and my "bad one.

Thanks for your help.

-----Original Message-----
From: Tisserand Romuald [mailto:romuald.tisserand@siemens.com] 
Sent: jeudi 27 mai 2004 16:21
To: 'batik-users@xml.apache.org'
Subject: Little example of my setSize problem


	 <<GoodSVGApplication.java>>  <<BadSVGApplication.java>>  <<etoile.svg>>


> Hello all,
> As I can't solve my setSize problem by myself, I send you a little example of my problem.
You'll find a little bit modified GoodSVGApplication made from the JSVGCanvas batik example
and it works fine. You'll also find a BadSVGApplication, it is close to my program design
and demonstrates the problem I've got using Batik. And finally, I joined the SVG file used
in the code.
> 
> This code is intended to be compiled with JDK1.4.2 and run under Win XP.
> 
> You are my last chance. After spending several days on that problem, I absolutely don't
know what to do, and if someone can point out my mistake, he (or she) will be my heroe forever.
> 
> Thanks for your help.
> 
> Romu

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message