Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to rotate draw2d label?(Problem with rotation of draw2d label.)
How to rotate draw2d label? [message #761396] Tue, 06 December 2011 12:24 Go to next message
Meghna Missing name is currently offline Meghna Missing nameFriend
Messages: 9
Registered: March 2011
Junior Member
Hi,

I need to rotate a org.eclipse.draw2d label to align them in parallel with PolylineConnection objects. I tried overriding the paintFigure method:

graphics.rotate(45);
graphics.setClip(getBounds().getCopy());
super.paintFigure(graphics);

There was no rotation of label with this code.

How to rotate a org.eclipse.draw2d label?
Any pointers will be extremely helpful.

Thanks.

Re: How to rotate draw2d label? [message #806142 is a reply to message #761396] Fri, 24 February 2012 15:38 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 29
Registered: July 2009
Junior Member
Hi,

I am currently watching this problem for a GMF modeler. I created a post
(Rotate label) to the newsgroup eclipse.modeling.gmf.

But FYI, I tried the patch suggested in this ticket:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281246 . Have you tried?
I tried but the result is not convincing.

Regards,

Laurent

On 06/12/2011 13:24, Meghna wrote:
> Hi,
>
> I need to rotate a org.eclipse.draw2d label to align them in parallel
> with PolylineConnection objects. I tried overriding the paintFigure method:
>
> graphics.rotate(45);
> graphics.setClip(getBounds().getCopy());
> super.paintFigure(graphics);
> There was no rotation of label with this code.
>
> How to rotate a org.eclipse.draw2d label?
> Any pointers will be extremely helpful.
>
> Thanks.
>
>
Re: How to rotate draw2d label? [message #806146 is a reply to message #761396] Fri, 24 February 2012 15:38 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 29
Registered: July 2009
Junior Member
Hi,

I am currently watching this problem for a GMF modeler. I created a post
(Rotate label) to the newsgroup eclipse.modeling.gmf.

But FYI, I tried the patch suggested in this ticket:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281246 . Have you tried?
I tried but the result is not convincing.

Regards,

Laurent

On 06/12/2011 13:24, Meghna wrote:
> Hi,
>
> I need to rotate a org.eclipse.draw2d label to align them in parallel
> with PolylineConnection objects. I tried overriding the paintFigure method:
>
> graphics.rotate(45);
> graphics.setClip(getBounds().getCopy());
> super.paintFigure(graphics);
> There was no rotation of label with this code.
>
> How to rotate a org.eclipse.draw2d label?
> Any pointers will be extremely helpful.
>
> Thanks.
>
>
Previous Topic:PolygonShape border color
Next Topic:ZEST: table cells as nodes / nodes in table cells?
Goto Forum:
  


Current Time: Tue Mar 19 04:43:06 GMT 2024

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

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

Back to the top