Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Are MoveHandles restricted to using MoveHandleLocators?
Are MoveHandles restricted to using MoveHandleLocators? [message #213520] Thu, 06 April 2006 19:44 Go to next message
Justin Coughlin is currently offline Justin CoughlinFriend
Messages: 4
Registered: July 2009
Junior Member
I need to put a move handle in the middle (both veritical and horizontal)
of a figure (its a line, so a move handle on the right edge will colide
with the resize handle for horizontal lines).

The MoveHandleLocator always positions the handle on 3/4 vertical on the
right edge of a figure. So I tried to use the RelativeHandleLocator but
when I do the cursor is changed to a pointer instead of SIZEALL in the UI
despite it being assigned correctly if I take a look at the MoveHandle in
debug. The pointer does not allow me to move the object with the keyboard.

Any idea what is wrong? Why I am restricted to using the
MoveHandleLocator?
Re: Are MoveHandles restricted to using MoveHandleLocators? [message #213612 is a reply to message #213520] Fri, 07 April 2006 20:00 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
Have you tried setting the locator on the Handle you are using to the
MidpointLocator? Looks like one of the constructor of the MoveHandle takes
a Locator in the second parameter.

-Steve

"Justin Coughlin" <justin.coughlin@businessobjects.com> wrote in message
news:f23ac35da54c38ad686603a74491f5e9$1@www.eclipse.org...
> I need to put a move handle in the middle (both veritical and horizontal)
> of a figure (its a line, so a move handle on the right edge will colide
> with the resize handle for horizontal lines).
>
> The MoveHandleLocator always positions the handle on 3/4 vertical on the
> right edge of a figure. So I tried to use the RelativeHandleLocator but
> when I do the cursor is changed to a pointer instead of SIZEALL in the UI
> despite it being assigned correctly if I take a look at the MoveHandle in
> debug. The pointer does not allow me to move the object with the
keyboard.
>
> Any idea what is wrong? Why I am restricted to using the
> MoveHandleLocator?
>
Re: Are MoveHandles restricted to using MoveHandleLocators? [message #213790 is a reply to message #213612] Mon, 10 April 2006 22:46 Go to previous message
Justin Coughlin is currently offline Justin CoughlinFriend
Messages: 4
Registered: July 2009
Junior Member
MidpointLocator's are for connections only. But your suggestion is
similar to what I tried with the RelativeHandleLocator. I'm using the
MoveHandle(GraphicalEditPart owner, Locator loc) constructor.

In fact I even tried subclassing the MoveHandleLocator and overriding the
relocate() method. Same troubles I get the mouse pointer instead of the
move cursor???

to clarify...

MoveHandle moveHandle = new MoveHandle (getHost (), new
MoveHandleLocator(getHostFigure ());

and
MoveHandle moveHandle = new MoveHandle (getHost(), new
RelativeHandleLocator(getHostFigure (), PositionConstants.CENTER));

both give me a handle but in case 2 its just a pointer and in case 1 its
in the wrong place. How can the locator affect this shouldn't it only
affect position?
Previous Topic:Where did build 3.2M6 go?
Next Topic:PropertySheet for an entire View
Goto Forum:
  


Current Time: Fri Apr 26 09:44:54 GMT 2024

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

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

Back to the top