Skip to main content



      Home
Home » Eclipse Projects » GEF » Import a SVG image in Draw2d/GEF
Import a SVG image in Draw2d/GEF [message #659971] Wed, 16 March 2011 08:51 Go to next message
Eclipse UserFriend
Hi!

I need import a SVG Image on Draw2d to display it and resize it.

I used "ImageFigure" class but SVG format is not supported.

Any suggestion?

Thanks!!

P.D: I use GEF, not GMF.

[Updated on: Wed, 16 March 2011 09:13] by Moderator

Re: Display a SVG image on Draw2d [message #659985 is a reply to message #659971] Wed, 16 March 2011 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

In the GMF experimental SDK, there is an org.eclipse.gmf.runtime.lite SVG that contains a SVGFigure you can use with draw2d.

HTH

--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: Display a SVG image on Draw2d [message #660012 is a reply to message #659985] Wed, 16 March 2011 10:41 Go to previous messageGo to next message
Eclipse UserFriend
SVGFigure figure = new SVGFigure();



java.lang.NoClassDefFoundError: org/eclipse/gmf/runtime/lite/svg/SVGFigure

I added it to "Referenced Libraries", what´s the problem?

[Updated on: Wed, 16 March 2011 10:41] by Moderator

Re: Display a SVG image on Draw2d [message #660041 is a reply to message #660012] Wed, 16 March 2011 11:22 Go to previous messageGo to next message
Eclipse UserFriend
It probably means that you are missing some dependencies for the SVG Figure bundle. If you installed it with p2, it should be fine; otherwise you'll also need to add org.apache.batik and its deps. You can get them from Orbit repository.

Le 16/03/2011 15:41, JeTBLaCK a écrit :
> SVGFigure figure = new SVGFigure();
>
>
> java.lang.NoClassDefFoundError: org/eclipse/gmf/runtime/lite/svg/SVGFigure
>
> I added to "Referenced Libraries", what´s the problem?


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: Display a SVG image on Draw2d [message #660047 is a reply to message #660041] Wed, 16 March 2011 12:32 Go to previous messageGo to next message
Eclipse UserFriend
I downloaded the zip file from GMF website.

I extracted all files on Eclipse folders (plugin and features folder)... but not works.
Re: Display a SVG image on Draw2d [message #660230 is a reply to message #660047] Thu, 17 March 2011 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Any ideas for my problem?
Re: Display a SVG image on Draw2d [message #660237 is a reply to message #660230] Thu, 17 March 2011 10:04 Go to previous messageGo to next message
Eclipse UserFriend
Use p2 to install plugins, and OSGi console to resolve dependency issues.

Le 17/03/2011 14:30, JeTBLaCK a écrit :
> Any ideas for my problem?


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: Display a SVG image on Draw2d [message #660292 is a reply to message #660237] Thu, 17 March 2011 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Thank you very much, I will install plugins with p2 and I hope that it works!
Re: Display a SVG image on Draw2d [message #660301 is a reply to message #660292] Thu, 17 March 2011 13:56 Go to previous message
Eclipse UserFriend
I installed GMF experimental SDK with p2 and it works!!!

Thank very much, Mickael Istria.
Previous Topic:How to create a figure with separate label?
Next Topic:How to create a diagram connection using properties view ?
Goto Forum:
  


Current Time: Sun Apr 20 19:39:15 EDT 2025

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

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

Back to the top