Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Anyone tried Java2D and SVG with SWT/Draw2D?
Anyone tried Java2D and SVG with SWT/Draw2D? [message #56460] Mon, 20 January 2003 12:04 Go to next message
Eclipse UserFriend
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 #56619 is a reply to message #56460] Mon, 20 January 2003 18:12 Go to previous messageGo to next message
Eric Bordeau is currently offline Eric BordeauFriend
Messages: 259
Registered: July 2009
Senior Member
That's weird. I was just reading about SVG this weekend. I remember someone posting to this
newsgroup asking if GEF could/would support SVG (at least for export). That Holongate plugin uses
Apache's Batik toolkit, which uses subclasses of AWT Graphics to generate SVG files. Since we use
SWT, I don't know how this will affect integration. I just looked briefly at the SVG spec, Batik
and the Holongate plugin, so I'm not sure what the best course of action would be. This wouldn't be
anything we could do anytime soon, since we're coming up quickly on the 2.1 release date, but it
does look very interesting.

Eric


Gunnar Wagenknecht wrote:
> 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 Go to previous messageGo to next message
Christophe Avare is currently offline Christophe AvareFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:The Command in GEF & EMF
Next Topic:Cut and Paste support in GEF
Goto Forum:
  


Current Time: Sat Nov 09 03:39:36 GMT 2024

Powered by FUDForum. Page generated in 0.02202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top