Display diagram title [message #224655] |
Wed, 18 October 2006 01:15 |
Eclipse User |
|
|
|
Originally posted by: novs.gmx.net
Hi
My gef editor supports two different views of the model by using
setContents(). Is there a way to display a label in the top left corner of
each diagram ? I tried getFigure().add() in the diagram editpart but it
didn't work.
Thanx
Rick
|
|
|
Re: Display diagram title [message #224663 is a reply to message #224655] |
Wed, 18 October 2006 01:46 |
Eclipse User |
|
|
|
Originally posted by: sundaolin.126.com
What is the layoutManager of the figure?
If its a freeformlayout,then you should not only call the
getFigure.add(),but also the
getFigure().setConstraint(figure,constraint);The parameter figure here
is the title you want,it may be a Label or other figure you like.
you can also use the titlebarBorder,but it seems that the title is on
the top of the figure,not the top left.
Rick Markov 写道:
> Hi
>
> My gef editor supports two different views of the model by using
> setContents(). Is there a way to display a label in the top left corner
> of each diagram ? I tried getFigure().add() in the diagram editpart but
> it didn't work.
>
> Thanx
>
> Rick
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03170 seconds