xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen" <steffen_sei...@web.de>
Subject how to draw a point into an JSVGCanvas
Date Wed, 04 Jan 2006 23:14:55 GMT
dear friends, 
i am a programming beginner and i hope anybody can help me with some example code:

i have a JSVGCanvas to display a worldMap inside like this:


     worldMap = new JSVGCanvas();
     panel = new JPanel();

     try
       {
           File a = new File("D:/Eclipse/Bait/world.svg");
           URL b = a.toURL();
           worldMap.loadSVGDocument(b.toString());
       }
       
       catch (Exception e)
       {       
        System.out.println("couldn't load the svg File: "+e);
       }       

      
      panel.add(worldMap);


   
This works. Now, how can i draw a Point using awt or any batik Method and display it at the
worldMap ?
in addition: is there a simple way, to keep the level of detail between the worldMap and the
"mapped" Point during zooming?


Since i have no experience with programming with batik it would be very appreciated to get
some example code!

Thanx!

Best Regards, 
Steve



Mime
View raw message