Skip to main content



      Home
Home » Eclipse Projects » GEF » Label for Connection
Label for Connection [message #200827] Thu, 27 October 2005 15:26 Go to next message
Eclipse UserFriend
I was wondering what the proper way is to add a user-moveable label to a
connection.
Can I just return the label as a model child of the connection? And does it
make sense to use a ConnectionEndPointLocator to provide a default location
for the label?
Re: Label for Connection [message #200835 is a reply to message #200827] Thu, 27 October 2005 16:12 Go to previous messageGo to next message
Eclipse UserFriend
please check the QVT diagrammer code, ConnTextMovePolicy.java at http://qvtp.org/downloads/qvtp-eclipse/
You will have to download the sources there.
Re: Label for Connection [message #201007 is a reply to message #200835] Fri, 28 October 2005 12:36 Go to previous messageGo to next message
Eclipse UserFriend
Thanks, that is helpful.

"venkataramana" <venkataramanam@gmail.com> wrote in message
news:1872862.1130443985455.JavaMail.root@cp1.javalobby.org...
> please check the QVT diagrammer code, ConnTextMovePolicy.java at
> http://qvtp.org/downloads/qvtp-eclipse/
> You will have to download the sources there.
Re: Label for Connection [message #201371 is a reply to message #200835] Mon, 31 October 2005 15:29 Go to previous messageGo to next message
Eclipse UserFriend
This looks nearly like my code, and I have changed my code slightly to make
it the same.
But still my connection label does not get drawn. I put breakpoints into
Label.paintFigure(Graphics) and ConnectionEndpointLocator.relocate(IFigure),
but they are not reached. How come those methods are not executed?

"venkataramana" <venkataramanam@gmail.com> wrote in message
news:1872862.1130443985455.JavaMail.root@cp1.javalobby.org...
> please check the QVT diagrammer code, ConnTextMovePolicy.java at
> http://qvtp.org/downloads/qvtp-eclipse/
> You will have to download the sources there.
Re: Label for Connection [message #201407 is a reply to message #201371] Mon, 31 October 2005 16:44 Go to previous messageGo to next message
Eclipse UserFriend
Hope your Connection-Editpart is returning the model-children as those Connection-Child model objects (for which Label is the created figure).

Thanks
Venkat
Re: Label for Connection [message #201414 is a reply to message #201407] Mon, 31 October 2005 17:09 Go to previous message
Eclipse UserFriend
Oh yes, it does that. Also createFigure() and refreshVisuals() are called on
the EditParts for the labels, but it never gets to paintFigure() on the
Label (which is the relevant Figure).

"venkataramana" <venkataramanam@gmail.com> wrote in message
news:23585437.1130795121774.JavaMail.root@cp1.javalobby.org...
> Hope your Connection-Editpart is returning the model-children as those
> Connection-Child model objects (for which Label is the created figure).
>
> Thanks
> Venkat
Previous Topic:Advice on a tab implementation in GEF/draw2d
Next Topic:there isn't focus board on my figures, what can I do?
Goto Forum:
  


Current Time: Mon Jun 02 19:06:08 EDT 2025

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

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

Back to the top