layers issue [message #149551] |
Wed, 01 September 2004 12:57 |
Yoav Rubin Messages: 93 Registered: July 2009 |
Member |
|
|
Hi all,
I need to add to the background of my editor some writing (something like
"do this in order for that to happened"), so i took my root edit part
(actually the editpart which is the content of a
ScalableFreeformRootEditPart), and in the method createFigure, instead of
just creating a FreeFormLayer , i also added a label in the right place with
the writing. The problem is that when i place a node on top of the writing,
the node is place "underneath" the writing, so the node is partially hidden
by the writing (where there is text). Moreover, now it is not possible to
select the node, (since it is under the writing, which is un-selectable). Is
there a way to place the writing under the node (maybe in a deeper layer) .
If so, how can i do it?
thanks
Yoav
|
|
|
Re: layers issue [message #149555 is a reply to message #149551] |
Wed, 01 September 2004 14:42 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You can paint directly on the content's figure by overriding paintFigure, or
you'll have to add another layer to the root, or make your contents be a
layered pane with 2 layers, one background, and one foreground which is
returned by getContentsPane().
The problem is in addChildVisual, the child is added at index 0 behind the
message figure.
"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:ch4h0q$8o0$1@eclipse.org...
> Hi all,
> I need to add to the background of my editor some writing (something like
> "do this in order for that to happened"), so i took my root edit part
> (actually the editpart which is the content of a
> ScalableFreeformRootEditPart), and in the method createFigure, instead of
> just creating a FreeFormLayer , i also added a label in the right place
with
> the writing. The problem is that when i place a node on top of the
writing,
> the node is place "underneath" the writing, so the node is partially
hidden
> by the writing (where there is text). Moreover, now it is not possible to
> select the node, (since it is under the writing, which is un-selectable).
Is
> there a way to place the writing under the node (maybe in a deeper layer)
..
> If so, how can i do it?
> thanks
> Yoav
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02824 seconds