Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Connection Position Changes on Scrolling
Connection Position Changes on Scrolling [message #179162] Mon, 25 April 2005 20:50 Go to next message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

Hi All,

I have a wierd problem here. I have snapshots to make it clear. When I click
on the connection and scroll down the window, the connections change their
position. These connections were assigned positions in MyConnectionAnchor
Class. Each connection has a variable location assocaited to it.

But when I have not selected the connection and I scroll down, it seems to
work fine. They are changing the position with respect to the window/canvas.
How can I control this?

Thanks in advance,
Binti.




  • Attachment: actual.GIF
    (Size: 15.67KB, Downloaded 124 times)
  • Attachment: problem.GIF
    (Size: 12.81KB, Downloaded 122 times)
Re: Connection Position Changes on Scrolling [message #179211 is a reply to message #179162] Mon, 25 April 2005 21:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You have a bug in your connectionanchor or connectionrouter class. Please
reread the javadoc with respect to points and which coordinates they should
be in.

Refer to chopboxanchor for example code.

"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d4jlbq$ek7$1@news.eclipse.org...
> Hi All,
>
> I have a wierd problem here. I have snapshots to make it clear. When I
> click on the connection and scroll down the window, the connections change
> their position. These connections were assigned positions in
> MyConnectionAnchor Class. Each connection has a variable location
> assocaited to it.
>
> But when I have not selected the connection and I scroll down, it seems to
> work fine. They are changing the position with respect to the
> window/canvas. How can I control this?
>
> Thanks in advance,
> Binti.
>
>
>
>
Re: Connection Position Changes on Scrolling [message #179219 is a reply to message #179211] Mon, 25 April 2005 22:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

It would be great if you could you explain it more? I do not have a
ConnectionRouter Class of my own, just the anchor.
The anchor class just returns the location where the connection should be
placed. The connections are always straight horizontal lines as shown in the
figures.

Binti.

"Randy Hudson" <none@us.ibm.com> wrote in message
news:d4joep$iqp$1@news.eclipse.org...
> You have a bug in your connectionanchor or connectionrouter class. Please
> reread the javadoc with respect to points and which coordinates they
> should be in.
>
> Refer to chopboxanchor for example code.
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d4jlbq$ek7$1@news.eclipse.org...
>> Hi All,
>>
>> I have a wierd problem here. I have snapshots to make it clear. When I
>> click on the connection and scroll down the window, the connections
>> change their position. These connections were assigned positions in
>> MyConnectionAnchor Class. Each connection has a variable location
>> assocaited to it.
>>
>> But when I have not selected the connection and I scroll down, it seems
>> to work fine. They are changing the position with respect to the
>> window/canvas. How can I control this?
>>
>> Thanks in advance,
>> Binti.
>>
>>
>>
>>
>
>
Re: Connection Position Changes on Scrolling [message #179286 is a reply to message #179219] Tue, 26 April 2005 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gslade.no.spam.us.ibm.com

Binti Sepaha wrote:
> It would be great if you could you explain it more? I do not have a
> ConnectionRouter Class of my own, just the anchor.
> The anchor class just returns the location where the connection should be
...... and there's your problem.... your anchor class is not calculating
this location correctly. As Randy has already said, go look at the
chopboxanchor for example code.

Guy
> placed. The connections are always straight horizontal lines as shown in the
> figures.
>
> Binti.
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:d4joep$iqp$1@news.eclipse.org...
>
>>You have a bug in your connectionanchor or connectionrouter class. Please
>>reread the javadoc with respect to points and which coordinates they
>>should be in.
>>
>>Refer to chopboxanchor for example code.
>>
>>"Binti Sepaha" <binti@ksu.edu> wrote in message
>>news:d4jlbq$ek7$1@news.eclipse.org...
>>
>>>Hi All,
>>>
>>>I have a wierd problem here. I have snapshots to make it clear. When I
>>>click on the connection and scroll down the window, the connections
>>>change their position. These connections were assigned positions in
>>>MyConnectionAnchor Class. Each connection has a variable location
>>>assocaited to it.
>>>
>>>But when I have not selected the connection and I scroll down, it seems
>>>to work fine. They are changing the position with respect to the
>>>window/canvas. How can I control this?
>>>
>>>Thanks in advance,
>>>Binti.
>>>
>>>
>>>
>>>
>>
>>
>
>
Re: Connection Position Changes on Scrolling [message #179578 is a reply to message #179286] Thu, 28 April 2005 19:19 Go to previous message
Eclipse UserFriend
Originally posted by: binti.ksu.edu

Thanks, it has been solved. You both were correct.

Binti.


"Guy Slade" <gslade.no.spam@us.ibm.com> wrote in message
news:d4lfss$kr7$1@news.eclipse.org...
> Binti Sepaha wrote:
>> It would be great if you could you explain it more? I do not have a
>> ConnectionRouter Class of my own, just the anchor.
>> The anchor class just returns the location where the connection should be
> ..... and there's your problem.... your anchor class is not calculating
> this location correctly. As Randy has already said, go look at the
> chopboxanchor for example code.
>
> Guy
>> placed. The connections are always straight horizontal lines as shown in
>> the figures.
>>
>> Binti.
>>
>> "Randy Hudson" <none@us.ibm.com> wrote in message
>> news:d4joep$iqp$1@news.eclipse.org...
>>
>>>You have a bug in your connectionanchor or connectionrouter class.
>>>Please reread the javadoc with respect to points and which coordinates
>>>they should be in.
>>>
>>>Refer to chopboxanchor for example code.
>>>
>>>"Binti Sepaha" <binti@ksu.edu> wrote in message
>>>news:d4jlbq$ek7$1@news.eclipse.org...
>>>
>>>>Hi All,
>>>>
>>>>I have a wierd problem here. I have snapshots to make it clear. When I
>>>>click on the connection and scroll down the window, the connections
>>>>change their position. These connections were assigned positions in
>>>>MyConnectionAnchor Class. Each connection has a variable location
>>>>assocaited to it.
>>>>
>>>>But when I have not selected the connection and I scroll down, it seems
>>>>to work fine. They are changing the position with respect to the
>>>>window/canvas. How can I control this?
>>>>
>>>>Thanks in advance,
>>>>Binti.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
Previous Topic:help with LayoutManagers
Next Topic:How to control drop event in TreeViewer
Goto Forum:
  


Current Time: Thu Apr 25 21:21:13 GMT 2024

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

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

Back to the top