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 07:24 Go to next message
Meghna Missing name is currently offline Meghna Missing name
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 10:38 Go to previous message
Laurent Redor is currently offline Laurent Redor
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 10:38 Go to previous message
Laurent Redor is currently offline Laurent Redor
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: Wed Aug 20 06:54:52 EDT 2014

Powered by FUDForum. Page generated in 0.01786 seconds