How to rotate draw2d label? [message #761396] |
Tue, 06 December 2011 07:24  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03292 seconds