Skip to main content



      Home
Home » Eclipse Projects » GEF » locate the label on the connection
locate the label on the connection [message #103250] Mon, 03 November 2003 21:06 Go to next message
Eclipse UserFriend
Originally posted by: eeoo_lee.hotmail.com

Hi,
I set a label in the middle of a connection using the
MidpointLocator.Now, I want to set the label's offset from the
connection's midpoint, how can I do that?
Re: locate the label on the connection [message #103310 is a reply to message #103250] Mon, 03 November 2003 23:22 Go to previous message
Eclipse UserFriend
Originally posted by: brian.fernandes.codito.com

"lianglee" <eeoo_lee@hotmail.com> wrote in message
news:bo71ie$pbm$1@eclipse.org...
> Hi,
> I set a label in the middle of a connection using the
> MidpointLocator.Now, I want to set the label's offset from the
> connection's midpoint, how can I do that?
>

Create your own Locator. Subclass the MidpointLocator and override the
getReferencePoint method to suit your needs. I think that should suit your
needs.

All the best,
Brian.
Previous Topic:"SWT error occured" when maximizing the logic example editor
Next Topic:which should be implemented when a Combo box be created?
Goto Forum:
  


Current Time: Tue Jul 15 06:14:19 EDT 2025

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

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

Back to the top