Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding purely geometric shapes to a diagram?
Adding purely geometric shapes to a diagram? [message #72264] Tue, 31 October 2006 11:41 Go to next message
Eclipse UserFriend
I would like to be able to add purely grapical elements to a diagram
(e.g. Labels to allow to describe things or rectangles that can be used
to surround and group elements).
These graphical elements should have no semantic meaning (I mean have no
representation whatsoever in the .ecore model). Can that be (easily)
done in GMF?

And by the way: is the original source to the geoshapes example
available? The source supplied in the GMF-examples file apparently is
the *generated* source, not the actual GMF input files. I would be
interested to see how these geometric shapes were defined.

Michael
Re: Adding purely geometric shapes to a diagram? [message #72319 is a reply to message #72264] Tue, 31 October 2006 12:06 Go to previous messageGo to next message
Eclipse UserFriend
Michael Moser wrote:

An example for purely graphical element that had no semantic element
behind it is the Note, Note edit part had a Note view which usually had
not semantic element behind it. Another example is the geoshapes.

The GeoShapes code will be in the plugin
org.eclipse.gmf.runtime.diagram.ui.geoshapes, but this plugin is not a
generated plugin, it had been implemented form scratch.




> I would like to be able to add purely grapical elements to a diagram
> (e.g. Labels to allow to describe things or rectangles that can be used
> to surround and group elements).
> These graphical elements should have no semantic meaning (I mean have no
> representation whatsoever in the .ecore model). Can that be (easily)
> done in GMF?
>
> And by the way: is the original source to the geoshapes example
> available? The source supplied in the GMF-examples file apparently is
> the *generated* source, not the actual GMF input files. I would be
> interested to see how these geometric shapes were defined.
>
> Michael
>
Re: Adding purely geometric shapes to a diagram? [message #72355 is a reply to message #72319] Tue, 31 October 2006 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for responding and for clarifying things re. the geoshapes
example!

I guess my question was more: can one specify such elements using GMF
(i.e. in a somehwat "declarative" way) and if so, how, or only by
hand-morphing/-adding to the generated code?

I find the concept of GMF very intruiging and so I want to hand-code
or -change as little as possible as long as I can achieve the same using
the misc. .gmf*-files.

Michael


"Mohammed Mostafa" <mmostafa@ca.ibm.com> wrote in message
news:ei7vsp$roo$1@utils.eclipse.org...
> Michael Moser wrote:
>
> An example for purely graphical element that had no semantic element
> behind it is the Note, Note edit part had a Note view which usually
> had not semantic element behind it. Another example is the geoshapes.
>
> The GeoShapes code will be in the plugin
> org.eclipse.gmf.runtime.diagram.ui.geoshapes, but this plugin is not a
> generated plugin, it had been implemented form scratch.
>
>
>
>
>> I would like to be able to add purely grapical elements to a diagram
>> (e.g. Labels to allow to describe things or rectangles that can be
>> used to surround and group elements).
>> These graphical elements should have no semantic meaning (I mean have
>> no representation whatsoever in the .ecore model). Can that be
>> (easily) done in GMF?
>>
>> And by the way: is the original source to the geoshapes example
>> available? The source supplied in the GMF-examples file apparently is
>> the *generated* source, not the actual GMF input files. I would be
>> interested to see how these geometric shapes were defined.
>>
>> Michael
>>
Re: Adding purely geometric shapes to a diagram? [message #72496 is a reply to message #72264] Wed, 01 November 2006 04:34 Go to previous messageGo to next message
Eclipse UserFriend
Hello Michael,

It is possible to generate diagram code working with design-only elements.
The only problem is: such elements can not contain any other diagram elements
with semantic model element attached. This is a current limitation.

To get pure-design elements generated just do not specify semantic model
element for the corresponding mapping.

-----------------
Alex Shatalin
Re: Adding purely geometric shapes to a diagram? [message #72533 is a reply to message #72264] Wed, 01 November 2006 05:44 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

Have a look at org.eclipse.gmf.examples.design2d

Michael Moser wrote:
> I would like to be able to add purely grapical elements to a diagram
> (e.g. Labels to allow to describe things or rectangles that can be used
> to surround and group elements).
> These graphical elements should have no semantic meaning (I mean have no
> representation whatsoever in the .ecore model). Can that be (easily)
> done in GMF?
>
> And by the way: is the original source to the geoshapes example
> available? The source supplied in the GMF-examples file apparently is
> the *generated* source, not the actual GMF input files. I would be
> interested to see how these geometric shapes were defined.
>
> Michael
>
Previous Topic:Height size of figure depending of his font size
Next Topic:default but not forced colors of figures (GMF 2.0)
Goto Forum:
  


Current Time: Tue Jul 22 15:50:16 EDT 2025

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

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

Back to the top