Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Can I put XYAnchor into a container?
Can I put XYAnchor into a container? [message #213079] Mon, 03 April 2006 01:53 Go to next message
Eclipse UserFriend
Originally posted by: brandonchen.realtek.com.tw

I've discovered how to draw a line like what MS Word does for a while. It
keeps bothering in some circumstances. If I use XYAnchor to create a line,
can I also put it into other containers and create the hierarchy outline?
Note that other containers are consisted of Figure, but the XYAnchor is not.

Another question is that I'm not able to move the 'whole' line together. I
must move one end of the line, then move the other end of the line to finish
moving the whole line.
Is it possible to move 'whole' line (the two ends) together??

Appreicated for any reply

Brandon
Re: Can I put XYAnchor into a container? [message #213167 is a reply to message #213079] Mon, 03 April 2006 17:05 Go to previous message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
It's possible, but with a little work. One way is to create a custom
BendpointEditPolicy (on the EditPolicy.CONNECTION_BENDPOINTS_ROLE) that
handles the request REQ_CREATE_BENDPOINT differently. Instead of creating a
new bendpoint it would set the source and target anchor positions.

-Steve

"Brandon" <brandonchen@realtek.com.tw> wrote in message
news:e0pv7i$utr$1@utils.eclipse.org...
> I've discovered how to draw a line like what MS Word does for a while. It
> keeps bothering in some circumstances. If I use XYAnchor to create a line,
> can I also put it into other containers and create the hierarchy outline?
> Note that other containers are consisted of Figure, but the XYAnchor is
not.
>
> Another question is that I'm not able to move the 'whole' line together. I
> must move one end of the line, then move the other end of the line to
finish
> moving the whole line.
> Is it possible to move 'whole' line (the two ends) together??
>
> Appreicated for any reply
>
> Brandon
>
>
Previous Topic:Could connection linked to Figures that using FreeformLayout?
Next Topic:Tooltip handling in LeightweightSystem (Draw2D)
Goto Forum:
  


Current Time: Fri Sep 20 14:03:45 GMT 2024

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

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

Back to the top