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
md md is currently offline md mdFriend
Messages: 9
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: 244
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] FXViewer don't work into FX SplitPane.
Next Topic:[GEF4] layout in mvc
Goto Forum:
  


Current Time: Thu Apr 25 06:24:52 GMT 2024

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

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

Back to the top