Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:51 Go to next message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
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 13:13]

Report message to a moderator

Re: Display a SVG image on Draw2d [message #659985 is a reply to message #659971] Wed, 16 March 2011 13:45 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 14:41 Go to previous messageGo to next message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
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 14:41]

Report message to a moderator

Re: Display a SVG image on Draw2d [message #660041 is a reply to message #660012] Wed, 16 March 2011 15:22 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 16:32 Go to previous messageGo to next message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
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 13:30 Go to previous messageGo to next message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
Any ideas for my problem?
Re: Display a SVG image on Draw2d [message #660237 is a reply to message #660230] Thu, 17 March 2011 14:04 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 17:11 Go to previous messageGo to next message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
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 17:56 Go to previous message
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011
Member
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: Fri Apr 19 21:07:27 GMT 2024

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

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

Back to the top