Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » add figure behind its parent
add figure behind its parent [message #145496] Thu, 29 July 2004 13:45 Go to next message
Eclipse UserFriend
Originally posted by: joseph.yahoo.com

Hi
Can I add a figure as a child of MyFigure. But this figure is behind
MyFigure? just like ConnectionEndPointLocator to add a label on a
connection.
thanks
Re: add figure behind its parent [message #145504 is a reply to message #145496] Thu, 29 July 2004 14:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rlemaigr.ulb.ac.be

On Thu, 29 Jul 2004 13:45:31 +0000 (UTC), joseph <joseph@yahoo.com> wrot=
e:

> Hi
> Can I add a figure as a child of MyFigure. But this figure is behin=
d
> MyFigure? just like ConnectionEndPointLocator to add a label on a
> connection.
> thanks
>

Hi,

I think it is not possible because the painting of the figure tree works=
=

in a way
that a parent will always be painted before its children (except the =

parent border maybe...I don't remember)
and then, behind its children (look at the Figure.paint() method).

So if you want your figure to be behind MyFigure, you have to place it =

elsewhere in the containent hierarchy
(and maybe to relocate it with a Locator and DelegatingLayout when =

MyFigure moves ?)

Maybe if you explain what you want to do exactly, people could help you =
=

finding another way to do it ?

r=E9gis
Re: add figure behind its parent [message #145588 is a reply to message #145504] Fri, 30 July 2004 02:15 Go to previous message
Eclipse UserFriend
Originally posted by: joseph.yahoo.com

hi
thanks for your reply
I want to do a locator just like ConnectionEndPointLocator to add label
behind the Connection through setUDistance(-50) can it work?
thanks

rlemaigr@ulb.ac.be wrote:

> On Thu, 29 Jul 2004 13:45:31 +0000 (UTC), joseph <joseph@yahoo.com> wrote:

> > Hi
> > Can I add a figure as a child of MyFigure. But this figure is behind
> > MyFigure? just like ConnectionEndPointLocator to add a label on a
> > connection.
> > thanks
> >

> Hi,

> I think it is not possible because the painting of the figure tree works
> in a way
> that a parent will always be painted before its children (except the
> parent border maybe...I don't remember)
> and then, behind its children (look at the Figure.paint() method).

> So if you want your figure to be behind MyFigure, you have to place it
> elsewhere in the containent hierarchy
> (and maybe to relocate it with a Locator and DelegatingLayout when
> MyFigure moves ?)

> Maybe if you explain what you want to do exactly, people could help you
> finding another way to do it ?

> régis
Previous Topic:CompoundDirectedGraphLayout and left-to-right ordering
Next Topic:Questing Regarding GrabHandle and Dragging
Goto Forum:
  


Current Time: Thu Apr 25 18:02:40 GMT 2024

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

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

Back to the top