You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Jean-Christophe Arnu <ar...@paratronic.fr> on 2005/05/27 12:00:54 UTC

Device independant transforms?

Hi,
    I use Batik since two years now without any problem in my 
developement and I'm quite happy with it. Some word about my use of Batik :
    I use Batik as a cartographic and interactive renderer of 'offline' 
converted MapInfo© files into SVG (if interested, I've written an ugly 
python script that converts MIF/MID files to SVG) in a swing application.
    Recently I decided to add some handy functionnalities to my app such 
as storing pan,zoom (AffineTransformMatrix) into a database allowing 
users to store this transform into a database and recall it. Since 
recently, I used getRenderingTransform() on a SVGCanvas . I store the 
AffineTransform into the Database and respawn the AffineTransform 
whenever asked. The problem is that getRenderingTransform *is* display 
device  dependant or althemost screen-resolution dependant so that a 
user on a 1600x1200 display storing a specific transformwon't retrieve 
the same view on a 1024x768 display which is not the correct behaviour.
    My question is : where can I find documentation on transform mapping 
in Batik or is there a display device independant transform I can use ? 
When I browsed the API I could not get some precise information on 
getScreenCTM() for exemple. Will I find the information in GVT, SVG-DOM 
engine or in the "Swing/Rendering" components?

Thank you for any clue!

-- 
Jean-Christophe Arnu
Paratronic


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