[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Problem to draw a vertical Label
|
Not sure, I think you'd need to adjust the bounds of your label (to be
vertically oriented) otherwise it will likely be clipped to the horizontal
label extent.
There's a utility that you might find convenient:
org.eclipse.draw2dImageUtilities#createRotatedImageOfString(..)
-Steve
"Virginie Legrand" <virginie.legrand@xxxxxxxxx> wrote in message
news:654acccb61a54b4acf07a870c4667b52$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> I tried to draw a Vertical Label :
>
> public class VerticalLabel extends Label {
>
> public VerticalLabel (String name) {
> super(name);
> }
> ...
> protected void paintFigure(Graphics g) {
> g.rotate (90);
> super (g);
>
> }
> ..
> }
>
> When adding to my Figure, it is displayed but not rotated !
> What is wrong ?
>
> thanks
> Virginie
>