Adding Images to a GMF Diagram [message #497975] |
Fri, 13 November 2009 15:18 |
Johannes Michler 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03424 seconds