Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to provide a name at the bottom of the icon??
how to provide a name at the bottom of the icon?? [message #112070] Thu, 15 March 2007 04:59 Go to next message
Eclipse UserFriend
Originally posted by: imrannawaz.softtrans.net

Hi all,

I have small doubt, could u plz solve this....

I want to provide a name at the bottom of the icon, i mean the name should
be part of the icon but it should be seperated from the icon.

so that the name cannot be reflect the size of an icon and should not be on
the icon.

Thanks
Imran
Re: how to provide a name at the bottom of the icon?? [message #112164 is a reply to message #112070] Thu, 15 March 2007 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pramsohl.in.tum.de

Hi Imran,

Let me see if i understand that right...
You've got a class XXX with Attribute "name";

gmfgraph:
You can define your graphical representation without Label Child
(XXXFigure).
Create a new Label Figure in your Figure Gallery root (and Diagram Label
in the Canvas - XXXLabel). Set the Label's Affixed Parent Side to the
Node-Side where you want your Label.

gmfmap:
Node reference with Figure XXXFigure and Child Label Mapping to XXXLabel.

Now the label sould be attached to his figure.

greets
Thomas



imran wrote:
> Hi all,
>
> I have small doubt, could u plz solve this....
>
> I want to provide a name at the bottom of the icon, i mean the name should
> be part of the icon but it should be seperated from the icon.
>
> so that the name cannot be reflect the size of an icon and should not be on
> the icon.
>
> Thanks
> Imran
>
>
Re: how to provide a name at the bottom of the icon?? [message #112325 is a reply to message #112164] Fri, 16 March 2007 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: imrannawaz.softtrans.net

Hi Thomas,

Thanks for ur reply.
But my problem is,
When I drag an icon from the palette to the diagram surface, It will ask for
name(label).
It is on the icon's body but I want the name should be at the bottom and
also it is separated from the icon.

Thanks
Imran

"Thomas" <pramsohl@in.tum.de> wrote in message
news:etb95s$n9a$1@utils.eclipse.org...
> Hi Imran,
>
> Let me see if i understand that right...
> You've got a class XXX with Attribute "name";
>
> gmfgraph:
> You can define your graphical representation without Label Child
> (XXXFigure).
> Create a new Label Figure in your Figure Gallery root (and Diagram Label
> in the Canvas - XXXLabel). Set the Label's Affixed Parent Side to the
> Node-Side where you want your Label.
>
> gmfmap:
> Node reference with Figure XXXFigure and Child Label Mapping to XXXLabel.
>
> Now the label sould be attached to his figure.
>
> greets
> Thomas
>
>
>
> imran wrote:
>> Hi all,
>>
>> I have small doubt, could u plz solve this....
>>
>> I want to provide a name at the bottom of the icon, i mean the name
>> should
>> be part of the icon but it should be seperated from the icon.
>>
>> so that the name cannot be reflect the size of an icon and should not be
>> on
>> the icon.
>>
>> Thanks
>> Imran
Re: how to provide a name at the bottom of the icon?? [message #112593 is a reply to message #112325] Fri, 16 March 2007 22:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pramsohl.in.tum.de

Hmm

if you do it like i explained - than you get something like that:

**********
* FIGURE *
* *
**********
LABEL

If you drag the figure the label moves with the figure.

greets
Thomas


imran schrieb:
> Hi Thomas,
>
> Thanks for ur reply.
> But my problem is,
> When I drag an icon from the palette to the diagram surface, It will ask for
> name(label).
> It is on the icon's body but I want the name should be at the bottom and
> also it is separated from the icon.
>
> Thanks
> Imran
>
> "Thomas" <pramsohl@in.tum.de> wrote in message
> news:etb95s$n9a$1@utils.eclipse.org...
>> Hi Imran,
>>
>> Let me see if i understand that right...
>> You've got a class XXX with Attribute "name";
>>
>> gmfgraph:
>> You can define your graphical representation without Label Child
>> (XXXFigure).
>> Create a new Label Figure in your Figure Gallery root (and Diagram Label
>> in the Canvas - XXXLabel). Set the Label's Affixed Parent Side to the
>> Node-Side where you want your Label.
>>
>> gmfmap:
>> Node reference with Figure XXXFigure and Child Label Mapping to XXXLabel.
>>
>> Now the label sould be attached to his figure.
>>
>> greets
>> Thomas
>>
>>
>>
>> imran wrote:
>>> Hi all,
>>>
>>> I have small doubt, could u plz solve this....
>>>
>>> I want to provide a name at the bottom of the icon, i mean the name
>>> should
>>> be part of the icon but it should be seperated from the icon.
>>>
>>> so that the name cannot be reflect the size of an icon and should not be
>>> on
>>> the icon.
>>>
>>> Thanks
>>> Imran
>
>
Re: how to provide a name at the bottom of the icon?? [message #112632 is a reply to message #112593] Sat, 17 March 2007 13:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Jonathan.simulistics.com

Thomas' instructions worked for me. When I moved the label from being a
child of the figure representing the node to being a sibling and after
setting everything else as Thomas wrote the label is out side the figure
representing the node.

Thanks Thomas.

Cheers,
Jonathan


Thomas wrote:
> Hmm
>
> if you do it like i explained - than you get something like that:
>
> **********
> * FIGURE *
> * *
> **********
> LABEL
>
> If you drag the figure the label moves with the figure.
>
> greets
> Thomas
>
>
Re: how to provide a name at the bottom of the icon?? [message #113322 is a reply to message #112593] Wed, 21 March 2007 05:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: imrannawaz.softtrans.net

Thanks Thomas,
I got the solution. what i want
Thanks again,

With Regards
imran


"Thomas" <pramsohl@in.tum.de> wrote in message
news:etf5l7$c3m$1@utils.eclipse.org...
> Hmm
>
> if you do it like i explained - than you get something like that:
>
> **********
> * FIGURE *
> * *
> **********
> LABEL
>
> If you drag the figure the label moves with the figure.
>
> greets
> Thomas
>
>
> imran schrieb:
>> Hi Thomas,
>>
>> Thanks for ur reply.
>> But my problem is,
>> When I drag an icon from the palette to the diagram surface, It will ask
>> for name(label).
>> It is on the icon's body but I want the name should be at the bottom and
>> also it is separated from the icon.
>>
>> Thanks
>> Imran
>>
>> "Thomas" <pramsohl@in.tum.de> wrote in message
>> news:etb95s$n9a$1@utils.eclipse.org...
>>> Hi Imran,
>>>
>>> Let me see if i understand that right...
>>> You've got a class XXX with Attribute "name";
>>>
>>> gmfgraph:
>>> You can define your graphical representation without Label Child
>>> (XXXFigure).
>>> Create a new Label Figure in your Figure Gallery root (and Diagram Label
>>> in the Canvas - XXXLabel). Set the Label's Affixed Parent Side to the
>>> Node-Side where you want your Label.
>>>
>>> gmfmap:
>>> Node reference with Figure XXXFigure and Child Label Mapping to
>>> XXXLabel.
>>>
>>> Now the label sould be attached to his figure.
>>>
>>> greets
>>> Thomas
>>>
>>>
>>>
>>> imran wrote:
>>>> Hi all,
>>>>
>>>> I have small doubt, could u plz solve this....
>>>>
>>>> I want to provide a name at the bottom of the icon, i mean the name
>>>> should
>>>> be part of the icon but it should be seperated from the icon.
>>>>
>>>> so that the name cannot be reflect the size of an icon and should not
>>>> be on
>>>> the icon.
>>>>
>>>> Thanks
>>>> Imran
>>
Re: how to provide a name at the bottom of the icon?? [message #735312 is a reply to message #113322] Tue, 11 October 2011 14:15 Go to previous message
Iban Ayestaran is currently offline Iban AyestaranFriend
Messages: 58
Registered: September 2011
Member
Hello,
I am trying to repeat this steps but I don't get what I want. I want to display the name of a block called "Module" outside it, on the top.

In the gmfgraph, I have:
- Label ModuleNameFigure
- Figure Descriptor ModuleFigure
____- Rectangle ModuleFigure
________- ...
____- Child Access getFigureModuleNameFigure
________(properties=> accessor:getFigureModuleNameFigure, Figure:Label ModuleNameFigure)
- Diagram Label ModuleName
____(properties=> accessor: getFigureModuleNameFigure, affixed parent side: NORTH, Figure: Figure Descriptor ModuleFigure, ...)

In the gmfmap, I have:
- Top Node Reference <module:module/module>
____- Node Mapping <module/module>
________- Label Mapping false
____________(properties=> Diagram Label: Diagram Label NormalModeName, ...)

What am I missing?

[Updated on: Tue, 11 October 2011 14:18]

Report message to a moderator

Previous Topic:Is it possible to debug a GMF project??
Next Topic:How to remove hardcoded path while deploying eclipse product
Goto Forum:
  


Current Time: Sun Nov 23 21:20:57 GMT 2014

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

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