Anyone tried Java2D and SVG with SWT/Draw2D? [message #56460] |
Mon, 20 January 2003 12:04 |
Eclipse User |
|
|
|
Originally posted by: g.wagenknecht.intershop.de
Hi!
On www.holongate.org are plugins for activatin Java2D with SWT and also for
displaying rendered SVG images. Did already anyone tried to connect it to
Draw2d? I look over it but I currently don't have any idea of how to perform
interaction.
Cu, Gunnar
|
|
|
|
Re: Anyone tried Java2D and SVG with SWT/Draw2D? [message #57153 is a reply to message #56619] |
Wed, 22 January 2003 19:31 |
Christophe Avare Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Hello,
(Eric, I personally write to you because as I am not often monitoring the
GEF newsgroup,
I respond to a quite old mail only today.)
You're right when you say that Batik uses AWT, but you're wrong when you
think it is
used by the SVG rendering/user interaction process.
The AWT and Swing Batik classes are optional parts used to provide a default
implementation
for the standard JSVGCanvas you find in the toolkit.
The core Batik implementation is made in term of interfaces, and GUI neutral
events.
We, at Holongate.org are in the process of porting the dynamic parts of
Batik to use
SWT mouse/keyboard events to ease implementation of features like link
activation,
area hitting detection, and so on. A new release is in the corner, as the
Batik 1.5 is also coming out.
This work is a complement of the current implementation where the widget
used to render SVG
is a regular SWT Composite (a Canvas in fact) that can receive all the
standard events.
There is really no AWT stuff used (but we deliver the complete set of
binaries for license reasons) here,
even if Sun have put into the java.awt.* packages some image and Java2D
stuff...
In fact, what we provide is a workaround for a missing GC feature to allow
blitting parts of images
directly from a data array.
Adding a GC.drawImage(BufferedImage,...) method would have made all this
work unecessary (but less fun ;-)
--
Christophe
"Eric Bordeau" <ebordeau@us.ibm.com> a
|
|
|
Re: Anyone tried Java2D and SVG with SWT/Draw2D? [message #57489 is a reply to message #57153] |
Thu, 23 January 2003 06:55 |
Eclipse User |
|
|
|
Originally posted by: g.wagenknecht.planet-wagenknecht.de
Hi!
"Christophe Avare" <eclipse@holongate.org> schrieb im Newsbeitrag
news:b0mqf1$qrh$1@rogue.oti.com...
> area hitting detection, and so on. A new release is in the corner, as the
> Batik 1.5 is also coming out.
I tried the current release and examples with batik 1.5 and it worked out of
the box already. I noticed that the simple image viewer (implemented as
editor) is not really fast. Will this be investigated for a future release
or is it currently not possible to do more improvements? Do you know what
might be the time consuming part?
Another question. Your plugins work on all platfroms, right? The win32
/linux gtk plugins contains only code to use faster native acceleration. Is
that right? Is the linux gtk acceleration GTK1 or GTK2 compatible?
Thanks, Gunnar
|
|
|
Powered by
FUDForum. Page generated in 0.02803 seconds