add figure behind its parent [message #145496] |
Thu, 29 July 2004 13:45 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 5.03800 seconds