Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » a question about connection
a question about connection [message #228020] Thu, 14 December 2006 01:58 Go to next message
Eclipse UserFriend
Originally posted by: jdenght.gmail.com

Hi,everyone:
how can i make Strings display above the line when i build a connection?



Re: a question about connection [message #228146 is a reply to message #228020] Sat, 16 December 2006 21:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Just add a label to the connection figure. Use a ConnectionLocator as the
constraint.

"jdenght" <jdenght@gmail.com> wrote in message
news:elqb41$dnv$1@utils.eclipse.org...
> Hi,everyone:
> how can i make Strings display above the line when i build a connection?
>
>
>
>
Re: a question about connection [message #228313 is a reply to message #228020] Tue, 19 December 2006 14:07 Go to previous message
Eclipse UserFriend
Originally posted by: js-ttn.jomisch.de

In your EditPart;

@Override
public void refreshVisuals() {
.
.
label = new Label("My Text");
ConnectionEndpointLocator sourceEndpointLocator = new ConnectionEndpointLocator(this.getConnectionFigure(), false);
getConnectionFigure().add(label, sourceEndpointLocator);
}
Previous Topic:Thank you GEF
Next Topic:diagram with root ToolbarLayout
Goto Forum:
  


Current Time: Thu Apr 25 20:18:41 GMT 2024

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

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

Back to the top