Skip to main content



      Home
Home » Eclipse Projects » GEF » CONNECTION PROBLEM!!!!
CONNECTION PROBLEM!!!! [message #166977] Fri, 04 February 2005 01:56 Go to next message
Eclipse UserFriend
Originally posted by: dakanalis.ced.tuc.gr

Hello,

I have created a connection with some decorations. I have placed those
decorations by using methods like:

ConnectionLocator locator= new
ConnectionLocator(connectionFigure,ConnectionLocator.MIDDLE) ;
setLayoutConstraint(figureEditPart,figureEditPart.getFigure( ),locator);

The problem is that all the decorations are fixed. I want to have the
ability to move those by using the mouse!

Any solution?? Thanks!!
Re: CONNECTION PROBLEM!!!! [message #167039 is a reply to message #166977] Fri, 04 February 2005 15:29 Go to previous message
Eclipse UserFriend
Themis,

Depending on the flexability you want, you'll probably have to make your
decorations models themselves and add them as children to your connection
model.

After that you should be able to apply normal GEF editing principles to
them.
This could be easy / hard depending on how you want to move and constrain
your decorations.

All the best,
Brian.

Themis wrote:

> Hello,

> I have created a connection with some decorations. I have placed those
> decorations by using methods like:

> ConnectionLocator locator= new
> ConnectionLocator(connectionFigure,ConnectionLocator.MIDDLE) ;
> setLayoutConstraint(figureEditPart,figureEditPart.getFigure( ),locator);

> The problem is that all the decorations are fixed. I want to have the
> ability to move those by using the mouse!

> Any solution?? Thanks!!
Previous Topic:Zooming with Ctrl + Mouse Wheel
Next Topic:Why REQ_CLONE is a ChangeBoundsRequest
Goto Forum:
  


Current Time: Tue Jun 17 20:16:09 EDT 2025

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

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

Back to the top