|[Draw 2d] Problem with rotation of draw2d label. [message #756909]
||Tue, 15 November 2011 13:51
| Meghna Missing name
Registered: March 2011
I need to rotate draw2d label to align them in parallel with PolylineConnection objects.
I tried overriding the paintFigure method:
However, I observed null pointer exceptions from super.paintFigure() method.
On eclipse bugzilla, it seems that this bug have been fixed in 3.6 version of gef.
But even after trying the code on 3.7 gef version, I observed the same exception.
As the exception is due to setting of relativeClip to null value in SWTGraphics.rotate() method, I tried setting the relativeClip by calling setClip() method before calling super.paintFigure() method. There was no exception but the label did not rotate.
What are the exact steps for rotating labels using graphics.rotate()?
Is there any other way by which draw2d labels can be drawn at an angle and aligned parallel to draw2d PolylineConnection objects?
Any pointers will be extremely helpful.
Powered by FUDForum
. Page generated in 0.01971 seconds