Thank you, Fennell and Archie! I will follow your recommendations and play a bit with the code to see how it will go, specially with the user interaction scenarios. I was only afraid by not knowing the way to start walking.

[]'s
Charles

On 7/6/06, Fennell, Philip <[EMAIL PROTECTED]> wrote:
Charles,
 
Most definitely put the icons in the SVG, and for that matter, use SVG for the icons too.
If you keep as much of the map's behaviour within the SVG as possible it opens the door for delivering the application over the internet to via browsers like Firefox and Opera (when they have better support for SVG) and also the Adobe viewer too. All the host application (Java or additional _javascript_) has to do is register event listeners on the SVG if it needs to carry-out additional work to respond to user input.
 
 
Regards
 
Philip Fennell
 
 


From: Charles Abreu [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2006 21:07
To: batik[EMAIL PROTECTED]
Subject: I need opinions on application design

Hi all,

I'm starting to develop an Java Swing application that will exibit and let users navigate on territorial maps. A feature of the application is to exibit icons on  specific coordinates of the maps, representing places marks the users can click to interact with. So, I have a least to "layers": one for the map and another for this icons. I'm not in the field of graphical applications design, so my question may be to simplistic or wrong. The question is: what is the best way to handle the icons on the maps? I see two options, one being place the icons inside the svg drawing file, maybe as <symbol>, and positionig them accordingly; and the other being handle all these icons on the Swing side, painting them on demand over the JSVCanvas to meet the map showing. What is the best (or correct) approach?

Any other opinion about it?

Thanks,
Charles Abreu






Reply via email to