Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Create a Label for a Figure
Create a Label for a Figure [message #225213] Thu, 26 October 2006 10:55 Go to next message
Eclipse UserFriend
Originally posted by: mouna.feki.siemens.com

Hi,
I would like to insert a Label (content the Name of the FigureX) to a
FigureX (like in the case of an Edge).
My aim is:
Label and Figure stand separately, i.e. I can (independently of
the Figure) select and put anywhere the Label.

Does anybody have an idea to solve this Problem?
Or there are an Example ?
Thanks

Mouna
Re: Create a Label for a Figure [message #225220 is a reply to message #225213] Thu, 26 October 2006 17:14 Go to previous messageGo to next message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
在 2006-10-26四的 10:55 +0000,Mouna 写道:
> Hi,
> I would like to insert a Label (content the Name of the FigureX) to a
> FigureX (like in the case of an Edge).
> My aim is:
> Label and Figure stand separately, i.e. I can (independently of
> the Figure) select and put anywhere the Label.
>
> Does anybody have an idea to solve this Problem?
> Or there are an Example ?
> Thanks
>
> Mouna
>
>
Maybe that you create a suite parent-child editparts, and make a kind of
layout, is a not bad idea.

Regards,

Qinxian
Re: Create a Label for a Figure [message #225222 is a reply to message #225220] Thu, 26 October 2006 21:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mouna.feki.siemens.com

Has you an Example, because i am new in GEF Domain?
Thanks
Mouna
Re: Create a Label for a Figure [message #225255 is a reply to message #225222] Fri, 27 October 2006 16:15 Go to previous message
Xiang Qinxian is currently offline Xiang QinxianFriend
Messages: 119
Registered: July 2009
Senior Member
在 2006-10-26四的 21:06 +0000,Mouna写道:
> Has you an Example, because i am new in GEF Domain?
> Thanks
> Mouna
>
Hi,
There is a good example, gef logic.
you can refer to diagram container with xylayouteditpolicy, and
customize LogicContainerFigure to your figure style , and
LogicContainerEditPart to your editpart which only having a child just
be figure's label.

Regards,

Qinxian.
Previous Topic:How to get zoom effect using GEF?
Next Topic:Coordinate types
Goto Forum:
  


Current Time: Mon Dec 06 06:48:46 GMT 2021

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

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

Back to the top