Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to rotate draw2d label?
https://www.eclipse.org/forums/index.php/mv/msg/263561/761396/#msg_761396
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.
]]>Meghna Missing name2011-12-06T12:24:25-00:00Re: How to rotate draw2d label?
https://www.eclipse.org/forums/index.php/mv/msg/263561/806146/#msg_806146
I am currently watching this problem for a GMF modeler. I created a post
(Rotate label) to the newsgroup eclipse.modeling.gmf.
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.
>
>]]>Laurent Redor2012-02-24T15:38:06-00:00Re: How to rotate draw2d label?
https://www.eclipse.org/forums/index.php/mv/msg/263561/806142/#msg_806142
I am currently watching this problem for a GMF modeler. I created a post
(Rotate label) to the newsgroup eclipse.modeling.gmf.
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.
>
>]]>Laurent Redor2012-02-24T15:38:06-00:00