Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding Images to a GMF Diagram
Adding Images to a GMF Diagram [message #497975] Fri, 13 November 2009 15:18 Go to next message
Johannes Michler is currently offline Johannes MichlerFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,

I'm building a simple editor using GMF. This is fine so far, but now I'd
like to add non-model-elements to my diagrams. I activated the
geoshapes-plugin, so this gives me the ability to draw Elipses, rectangles,
polygons,... to my diagram. (I don't want to have these graphical
information in my model, so this is fine).

But I'm still missing one graphical Element: I'd like to add Images to my
diagram for illustration. What would be the simplest way to achieve this? Is
there something like geoshapes for images? I found things like
BufferedImageEditPart but I'm new to GMF and clueless how to integrate this
into my generated editor.

The functionality I'd like to have is: a "Image" creation-tool in my
Palette, that asks me to specify a jpg/png/... image from my filesystem and
then draws this image in my diagram (in a moveable and resizable rectangle)

It would be great if you could provide me some hints on how I could achieve
this, the tutorials and samples I found don't have such a feature :-(


-orgler
Re: Adding Images to a GMF Diagram [message #498026 is a reply to message #497975] Fri, 13 November 2009 17:33 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

not sure to understand but ImageFigure or SVGFigure seems to be what your are searching for.

Regards,

Aurelien Pupier


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Adding Images to a GMF Diagram [message #498489 is a reply to message #498026] Tue, 17 November 2009 08:41 Go to previous message
Johannes Michler is currently offline Johannes MichlerFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,

thanks for your reply. I found ImageFigure but I'm not sure about the best
way (or some way at all) to use this figure in my GMF-Editor? Could you
provide me some sample or a bit more detailed information on how to include
ImageFigure in my editor? I'd like to choose the concrete image while using
the "create-image" tool create such a new figure...
Sorry for the maybe stupid-seeming questions, but I'm quite new to GMF :-(

-org


"Aurelien Pupier" <aurelien.pupier@gmail.com> schrieb im Newsbeitrag
news:hdk58h$jnl$1@build.eclipse.org...
> Hi,
>
> not sure to understand but ImageFigure or SVGFigure seems to be what your
> are searching for.
>
> Regards,
>
> Aurelien Pupier
Previous Topic:Getting write transactions to work in GMF
Next Topic:Enable adding child to container while compartment is hidden
Goto Forum:
  


Current Time: Tue Sep 24 02:27:03 GMT 2024

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

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

Back to the top