Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » layers issue
layers issue [message #149551] Wed, 01 September 2004 12:57 Go to next message
Yoav Rubin is currently offline Yoav RubinFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Direct edit out of sight
Next Topic:gef edtor snapshot question
Goto Forum:
  


Current Time: Wed Feb 05 19:03:47 GMT 2025

Powered by FUDForum. Page generated in 0.02824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top