Using images for nodes [message #213574] |
Mon, 15 December 2008 07:55  |
Eclipse User |
|
|
|
Is it possible to use for example a gif-image for a node in GMF? We want
to create the initial and final state for a statechart and thought it
would be much easier to use image-files rather than creating them in the
gmfgraph. Also, is it possible to "load" the image into the .gmfgraph or
do we have to manipulate any code to make it work? The first option would
of course be the best...
And, we want our nodes to have a fixed size. Even though we set both max,
min and preferred size, it doesn't seem to matter, the node can be created
in any size in the diagram anyways. We have tried to use the
DefaultSizeFacet-option too, but that didn't seem to make any
difference...perhaps we used it in the wrong way?
/Linda & Anna
|
|
|
|
|
Re: Using images for nodes [message #213735 is a reply to message #213649] |
Tue, 16 December 2008 08:26  |
Eclipse User |
|
|
|
Hello Anna,
I've used these settings to create nodes with fixed size all (representing
some picture from the image), so i think this is exactly what you are looking
for.
> But maybe this will work. In that case, where/in what file should this
> be used?
In .gmfgraph file.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 1.03477 seconds