Skip to main content



      Home
Home » Eclipse Projects » GEF » Handles wont move
Handles wont move [message #122663] Tue, 16 March 2004 13:21 Go to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

After I move my LineEditpart, the handles do not move. How do I get the
handles to move. I think this is because my line has a small bounds,
and somewhere something is getting the bounds from the figure, and
making them dirty, but not getting the bounds of the handles too.

Any guesses as to where the bounds are usually grabbed? Trying, but I
can't seem to nail it.


--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: Handles wont move [message #122683 is a reply to message #122663] Tue, 16 March 2004 14:29 Go to previous message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

CL [dnoyeb] Gilbert wrote:
> After I move my LineEditpart, the handles do not move. How do I get the
> handles to move. I think this is because my line has a small bounds,
> and somewhere something is getting the bounds from the figure, and
> making them dirty, but not getting the bounds of the handles too.
>
> Any guesses as to where the bounds are usually grabbed? Trying, but I
> can't seem to nail it.
>
>

Got it!

getParent().setLayoutConstraint actually causes an invalidate. But also
setting the values on the figure causes a repaint. So this is probably
related to the race I used to get.

For now my problem was that I set the start and end points on the
figure, then asked the figure for its bounds, then used those bounds in
setlayoutConstraint. Where as I should have used the bounds from the
model in setlayoutConstraint.

It works now. Well at least the handles move. I still need to get the
resizing going, but at least the move is working. Ill take a day off to
clean up the code before I get on to resize.

--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Previous Topic:Does GEF licence require software to be open-source?
Next Topic:Width of palette when using PaletteGroup and PalleteDrawer
Goto Forum:
  


Current Time: Thu Jul 17 13:04:21 EDT 2025

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

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

Back to the top