Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Resize only in north and south directions
Resize only in north and south directions [message #233390] Tue, 24 April 2007 11:49 Go to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
I have a figure which when selected shows the usual 8 handles. I have a
resizeable edit policy installed.

What I want is to only show the north and south handles. Is there an API
to remove these handles. I have constrained the deltas but would prefer
to not have the handles visible if not usable.

Any ideas??

/Dominic
Re: Resize only in north and south directions [message #233449 is a reply to message #233390] Tue, 24 April 2007 17:12 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Override ResizableEditPolicy#createSelectionHandles() and add only the
handles you'd like to show (so don't call super).
Hope this helps.

Cheers,
Alex
Previous Topic:Zoom support to innner figure
Next Topic:Drag Position
Goto Forum:
  


Current Time: Sat Aug 13 00:46:41 GMT 2022

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

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

Back to the top