Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to create rotatable handle for my widget
How to create rotatable handle for my widget [message #204598] Tue, 06 December 2005 12:18 Go to next message
Eclipse UserFriend
Originally posted by: iamsananth.yahoo.com

Hi all
Plz any one help me for to do following:
1.I want to create a widget with 2 handles.
2.The 2 handles should be rotatable.

I created a Line widget i want to rotate that widget like how we are
rotating lines in MSWORD.
Re: How to create rotatable handle for my widget [message #205000 is a reply to message #204598] Fri, 09 December 2005 16:54 Go to previous messageGo to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
I am not sure what a "handle should be rotatable" means but if you want to
use the 2 handles to rotate the figures than you should look at
org.eclipse.gef.tools and you should implement your own tool which will be
much like the SelectionTool but instead of selecting the figures the tool
will rotate them.

About the selection handles see the
org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy.
You can specify the position and the number of handles.

hope I have helped..
Re: How to create rotatable handle for my widget [message #205220 is a reply to message #205000] Wed, 14 December 2005 07:13 Go to previous message
Eclipse UserFriend
Originally posted by: ananth.exorindia.com

Thanks for ur idea..
Actually iam trying to create a new LINE shape widget.The req is like
the widget should be with 2 handle.The widget should have to work line
MSWORD line i mean i should be rotatable.So plz if u have any example plz
send me
Previous Topic:Having a main figure with children figures outside of the main figure's bounds
Next Topic:Draw2d - enhanced Fanrouter
Goto Forum:
  


Current Time: Fri Apr 26 10:14:36 GMT 2024

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

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

Back to the top