Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » a question about connection
a question about connection [message #228020] Wed, 13 December 2006 20:58 Go to next message
Eclipse User
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 16:27 Go to previous messageGo to next message
Eclipse User
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 09:07 Go to previous message
Eclipse User
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 Aug 28 23:40:19 EDT 2014

Powered by FUDForum. Page generated in 0.04895 seconds