First of all - SVG is exactly what you need and matching perfect with your request.

point 2
A good method is e.g. to create the entire svg graphic at runtime from any datasource.
If you want to display the svg graphic in an browser you do not need batik framework.
I have build a web application what creates svg graphics in a servlet. These graphics 
is shown with the Adobe SVG plugin for IE or Mozilla.
If you want to build a client application than batik is needed!

There is a mistake or misunderstanding in your point 3.
JSVGCanvas can only display one document in time not one object.
A document can containing uncounted among of objects (graphical elements).
The initialization time is depending from the count and complextity of elements.

Jan

-----Urspr�ngliche Nachricht-----
Von: Reinhard Brandst�dter [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 4. Juni 2003 09:42
An: [EMAIL PROTECTED]
Betreff: Batik and SVG for displaying multiple graphical Objects...


Hi!

I'm currently working on my thesis and looking for a way to render many
different arbitrary grapical Objects to a screen.
I'm not too deep into SVG and Batik (just spent the day reading through
documents and tutorials) but I think there are some interesting aspects
I can't ignore.
Maybe you can help me with my decision. Here the facts what I want to do
and what I need:

1.) easy to read but powerful description of graphical objects
   that's why I thought of SVG, my framework also uses XML for
configuration (quite a lot to be honest) and the graphical objects are
part of this configuration. This is a main point: easy but yet powerful
specification of graphical objects.

2.) ability to modify these graphical objects during runtime.
   What I'm especially interested in is adding text information when
reading the SVG definition from a file and then change (maybe
predefined) or add text.

3.) the ability to display many different graphical objects on one
display (Canvas, Window,..)
   Imagine a sequential stream of such graphical objects and a process
just decided where to place and "draw" this object, how long it should
be shown, etc.

4.) since I'll generate lot's of (small) objects to display, this should
be reasonably fast...


As for Point 3.) rendering SVGs to a display I read about SVGCanvas but
as far as I understood this Canvas is exactly for one Object. I would
need much more than one. Some objects might "appear", be displayed for
some time and dissapear again. I thought of combining/merging and
tearing SVGs apart again but this seems to be the most ugly and slowest way.
The easiest way to describe what I want might be:
read SVGs from file, modify them during runtime (add/cahnge text),
decide where on the screen and for how long to display them, and then
delete them again. (basically generate a animation with interacting
graphical objects on one display)

What do you think? Is this a possible way to go? Is this concept too
slow or too complicated?

Just for interest: is there a way to convert a SVG DOM structure into a
Java Swing Component?

Thanks for your opinions and hints!

Reinhard

-- 
Reinhard Brandstaedter   [EMAIL PROTECTED]  GPG: 0x033B81DB
-    Student of Computer Science - J.K. University of Linz     -
-        <ICQ: 73059068>    <Mobile: +43 699 12419541>         -
-                  http://adelaide.dnsalias.net                -



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

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

Reply via email to