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 Charles Abreu <ch...@gmail.com> on 2006/07/05 22:07:18 UTC

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

Re: I need opinions on application design

Posted by Archie Cobbs <ar...@dellroad.org>.
Charles Abreu wrote:
> 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?

I'd put them in the SVG file via exteral references, e.g.:

   <image transform="translate(100, 100)" xlink:href="/icons/foo.jpg"/>

You keep the files separate yet have the ease of SVG placement/rendering.

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

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


Re: I need opinions on application design

Posted by Charles Abreu <ch...@gmail.com>.
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 <ph...@hp.com> 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:charlesabreu@gmail.com]
> *Sent:* 05 July 2006 21:07
> *To:* batik-users@xmlgraphics.apache.org
> *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
>
>
>
>

RE: I need opinions on application design

Posted by "Fennell, Philip" <ph...@hp.com>.
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:charlesabreu@gmail.com] 
Sent: 05 July 2006 21:07
To: batik-users@xmlgraphics.apache.org
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