CONNECTION PROBLEM!!!! [message #166977] |
Fri, 04 February 2005 01:56  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!!
|
|
|
Powered by
FUDForum. Page generated in 0.04630 seconds