Hi,

I've been searching and trying a bunch of different things over the
last couple of days, and I can't seem to get the desired results. 
Here is my requirement:
 
 I have a bunch of Java2D Shapes that I would like to pass through the
SVGGenerator to generate my SVG file via SVGGraphics2D.stream(). 
However, I haven't quite figured out the best way to modify the DOM so
I can associate my own intelligent information with the svg paths or
even modify the DOM to change or add some SVG tags.
  For example: I have drawn a rectangle and on mouse clicked event i
am plotting circles over the rectangle. Now, on click of a button i
should be able to hide all the circles. This can be done by getting
the circle elments from SVG Dom and set the visible attribute. But,
here my question is,

  1. There is no id element in the DEFAULT SVG content generated by
the SVGGraphics2D. How to give id attribute to each element ?

   -  Should i create the SVG circle elements myself and should add it
to the SVGDom, is that the correct way ? and should take care of
adding it under appropriate parents etc., So each time for a mouse
click this must be done ? Ooops!!! then lot of work, performance will
be poor, i think.

Any hints would be greatly appreciated because I'm trying to come up
with a proof of concept to show off the advantages of on-the-fly,
generated SVG.

Note: No swing components only java2d shapes.

Thanks,
Leo





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hcs8iba/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123742639/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to