Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Draw 2d] Problem with rotation of draw2d label.(How to rotate a draw2d label?)
[Draw 2d] Problem with rotation of draw2d label. [message #756909] Tue, 15 November 2011 13:51
Meghna Missing name is currently offline Meghna Missing nameFriend
Messages: 9
Registered: March 2011
Junior Member

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.


Previous Topic:Problem with ZEST...
Next Topic:Adding Color to Shapes via Property in GEF BPMN 2 Editor
Goto Forum:

Current Time: Sun Dec 05 18:33:12 GMT 2021

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

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

Back to the top