Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Clipping problem after rotation
Clipping problem after rotation [message #1714676] Sun, 15 November 2015 14:57 Go to next message
sirair sirair is currently offline sirair sirairFriend
Messages: 7
Registered: November 2015
Junior Member
I want to rotate custom figures by using graphics.rotate(...), without changing any bounds. But after rotation the figures are clipped wrong. Can so. help please.
Re: Clipping problem after rotation [message #1715274 is a reply to message #1714676] Fri, 20 November 2015 17:57 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 235
Registered: July 2009
Location: L√ľnen
Senior Member
In general, Figure does not handle rotations properly. You will have to overwrite paintClientArea() and probably also paintChildren() to address the clipping issue. Be aware that there are other implications as well. The figure's bounds will also not be correct unless you adjust them properly. There is a proposed contribution related to a rotated rectangle (https://bugs.eclipse.org/bugs/show_bug.cgi?id=117012). Maybe that can give you a start.

If you have just started to use GEF, I would recommend to use GEF4 instead. There, such kind of things are pretty easily achieved (actually they work out of the box).
Previous Topic:[GEF4] Tutorial first steps available
Next Topic:[Zest] Layout implementations and node overlapping
Goto Forum:
  


Current Time: Fri Nov 16 06:17:36 GMT 2018

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

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

Back to the top