Hi Roy,

Roy S <[EMAIL PROTECTED]> wrote on 09/15/2006 10:04:07 AM:

> > Is your intent to draw the synoptic in SVG?  I suspect that this is 
> > your intent.  If so then I withdraw my concern.

> The synoptics are plain diagrams in that they need to be drawn in 
different
> ways (for example, changing colours depending on their current 
statuses).
> They only have to support basic events like right mouse click and double
> click.

   Right all of which is fairly simple to do in SVG (If you wanted
to you could even make the popup menu using Swing, which might
be easier, but have it triggered from the SVG Element).

> Having said that, the information about the synoptic display (the number 
of
> square bodies, the way they are oriented with respect to each other, 
etc.:
> basically how to represent them on screen), are stored separately. This
> information can be updated dynamically:[...] This means that we should 
have
> the capability so that the display can be updated dynamically.

   Sure, if you manipulate the SVG Document the graphical display will
be automatically updated.

> We will need some means by which we can generate SVG primitives out of 
the
> "information about the synoptic display" that can then be rendered on
> screen. Those should have the mouse click properties (mentioned above): 
Can
> we expect the SVG Generator component of Batik to handle all this?

    You can use the SVG generator component, however this is not really 
what
it is designed for, also for example if the color of one part of a 
"complex"
synoptic changes it will be faster to simply update the fill on that 
element
than rebuild the entire synoptic and replace it in the document.

    So I would recommend that you write Java functions to "draw" the
synoptics using SVG primitives which generally is really fairly simple.

    Good luck.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to