Skip to main content



      Home
Home » Eclipse Projects » GEF » draw2d - PolylineConnection NOT from center to center
draw2d - PolylineConnection NOT from center to center [message #233259] Thu, 19 April 2007 16:39 Go to next message
Eclipse UserFriend
Originally posted by: malnatij.lu.unisi.ch

Hi, PolylineConnection connect the center of an image to the center of another image.

This is my example:

http://img114.imageshack.us/img114/1909/43649020mw8.png

what should I do if I want the connection to be between the lowest part of an image and the top part of another one? (not center to center, but bottom-center to top-center)
Re: draw2d - PolylineConnection NOT from center to center [message #233282 is a reply to message #233259] Fri, 20 April 2007 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You'd have to implement your own connection anchor that would allow such
behavior. On the diagram from the screen shot the anchors used are
probably ChopboxAnchor, which set up reference points for the connection
start and end to be the centers of figures that connection links. For your
customized anchors you'd have to provide functionality that will provide
support for making the reference point movable. You can refer to GMF's
BaseSlidableAnchor and its subclasses as examples.
Hope this helps.

Cheers,
Alex
Re: draw2d - PolylineConnection NOT from center to center [message #233339 is a reply to message #233282] Sun, 22 April 2007 15:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: malnatij.lu.unisi.ch

thanks! I'm doing that, let's see :)
Re: draw2d - PolylineConnection NOT from center to center [message #233347 is a reply to message #233339] Sun, 22 April 2007 15:37 Go to previous message
Eclipse UserFriend
Originally posted by: malnatij.lu.unisi.ch

excellent, I've overridden the getLocation() and that's it
Previous Topic:Setting active tool from palette
Next Topic:graphical artefacts on a windows xp Professional system
Goto Forum:
  


Current Time: Mon Jul 14 19:03:54 EDT 2025

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

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

Back to the top