Home » Eclipse Projects » GEF » Figures not being Opaque
Figures not being Opaque [message #176269] |
Fri, 08 April 2005 19:58 |
Eclipse User |
|
|
|
Originally posted by: binti.ksu.edu
Hi all,
I have a problem. I have set the figure as Opaque. But still when I drag a
figure over another figure, I can view the figure in the background. All my
figures are drawn using the paintFigure() method. Can someone please tell
me, what could be the possible problem here?
Thanks,
Binti.
|
|
| |
Re: Figures not being Opaque [message #176316 is a reply to message #176283] |
Sat, 09 April 2005 00:12 |
Eclipse User |
|
|
|
Originally posted by: binti.ksu.edu
Hi Pratik,
Here is a screen shot. Both these figures are opaque.
Thanks,
Binti.
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d36ph0$ujr$1@news.eclipse.org...
> Screenshot?
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d36o0m$sls$1@news.eclipse.org...
>> Hi all,
>>
>> I have a problem. I have set the figure as Opaque. But still when I drag
>> a
>> figure over another figure, I can view the figure in the background. All
> my
>> figures are drawn using the paintFigure() method. Can someone please tell
>> me, what could be the possible problem here?
>>
>> Thanks,
>> Binti.
>>
>>
>
>
|
|
|
Re: Figures not being Opaque [message #176361 is a reply to message #176316] |
Sat, 09 April 2005 16:32 |
Brian Fernandes Messages: 68 Registered: July 2009 |
Member |
|
|
Binti,
Are you talking about the connections? Connections are always above the
other figures because the connection layer is above the layer on which the
figures are drawn.
Also, you cannot drag a figure "over" another figure. The order in which the
figures are drawn (which affects how figures overlap each other) depends on
their index in the list of their siblings.
Search for "z order" in this newsgroup - that thread should give you some
pointers.
Hope this helps,
Brian.
"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d376tv$evi$1@news.eclipse.org...
> Hi Pratik,
>
> Here is a screen shot. Both these figures are opaque.
>
> Thanks,
> Binti.
>
> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> news:d36ph0$ujr$1@news.eclipse.org...
>> Screenshot?
>>
>> "Binti Sepaha" <binti@ksu.edu> wrote in message
>> news:d36o0m$sls$1@news.eclipse.org...
>>> Hi all,
>>>
>>> I have a problem. I have set the figure as Opaque. But still when I drag
>>> a
>>> figure over another figure, I can view the figure in the background. All
>> my
>>> figures are drawn using the paintFigure() method. Can someone please
>>> tell
>>> me, what could be the possible problem here?
>>>
>>> Thanks,
>>> Binti.
>>>
>>>
>>
>>
>
>
>
|
|
|
Re: Figures not being Opaque [message #176444 is a reply to message #176361] |
Mon, 11 April 2005 00:14 |
Eclipse User |
|
|
|
Originally posted by: binti.ksu.edu
I am not talking about connections. The screenshot I sent had no
connections. I willl try to look into 'z order'. Thanks.
Binti.
"Brian Fernandes" <brian.fernandes@genuitec.com> wrote in message
news:d390av$bch$1@news.eclipse.org...
> Binti,
>
> Are you talking about the connections? Connections are always above the
> other figures because the connection layer is above the layer on which the
> figures are drawn.
>
> Also, you cannot drag a figure "over" another figure. The order in which
> the figures are drawn (which affects how figures overlap each other)
> depends on their index in the list of their siblings.
>
> Search for "z order" in this newsgroup - that thread should give you some
> pointers.
>
> Hope this helps,
> Brian.
>
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d376tv$evi$1@news.eclipse.org...
>> Hi Pratik,
>>
>> Here is a screen shot. Both these figures are opaque.
>>
>> Thanks,
>> Binti.
>>
>> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
>> news:d36ph0$ujr$1@news.eclipse.org...
>>> Screenshot?
>>>
>>> "Binti Sepaha" <binti@ksu.edu> wrote in message
>>> news:d36o0m$sls$1@news.eclipse.org...
>>>> Hi all,
>>>>
>>>> I have a problem. I have set the figure as Opaque. But still when I
>>>> drag a
>>>> figure over another figure, I can view the figure in the background.
>>>> All
>>> my
>>>> figures are drawn using the paintFigure() method. Can someone please
>>>> tell
>>>> me, what could be the possible problem here?
>>>>
>>>> Thanks,
>>>> Binti.
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
|
|
|
Re: Figures not being Opaque [message #176579 is a reply to message #176444] |
Mon, 11 April 2005 00:35 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
Are you invoking super.paintFigure() from your paintFigure() method?
"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d3cfrl$vc9$1@news.eclipse.org...
> I am not talking about connections. The screenshot I sent had no
> connections. I willl try to look into 'z order'. Thanks.
>
> Binti.
>
>
> "Brian Fernandes" <brian.fernandes@genuitec.com> wrote in message
> news:d390av$bch$1@news.eclipse.org...
> > Binti,
> >
> > Are you talking about the connections? Connections are always above the
> > other figures because the connection layer is above the layer on which
the
> > figures are drawn.
> >
> > Also, you cannot drag a figure "over" another figure. The order in which
> > the figures are drawn (which affects how figures overlap each other)
> > depends on their index in the list of their siblings.
> >
> > Search for "z order" in this newsgroup - that thread should give you
some
> > pointers.
> >
> > Hope this helps,
> > Brian.
> >
> >
> > "Binti Sepaha" <binti@ksu.edu> wrote in message
> > news:d376tv$evi$1@news.eclipse.org...
> >> Hi Pratik,
> >>
> >> Here is a screen shot. Both these figures are opaque.
> >>
> >> Thanks,
> >> Binti.
> >>
> >> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> >> news:d36ph0$ujr$1@news.eclipse.org...
> >>> Screenshot?
> >>>
> >>> "Binti Sepaha" <binti@ksu.edu> wrote in message
> >>> news:d36o0m$sls$1@news.eclipse.org...
> >>>> Hi all,
> >>>>
> >>>> I have a problem. I have set the figure as Opaque. But still when I
> >>>> drag a
> >>>> figure over another figure, I can view the figure in the background.
> >>>> All
> >>> my
> >>>> figures are drawn using the paintFigure() method. Can someone please
> >>>> tell
> >>>> me, what could be the possible problem here?
> >>>>
> >>>> Thanks,
> >>>> Binti.
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
>
>
|
|
|
Re: Figures not being Opaque [message #176587 is a reply to message #176579] |
Mon, 11 April 2005 02:20 |
Eclipse User |
|
|
|
Originally posted by: binti.ksu.edu
Thanks Pratik,
That helps. But the z-order is another problem. I did not find much thread
on it. Could you explain how and where it is set. And how to change it?
Also, now the connections still show and as Brian explained, they will
always shpw as the connection layer is on the top of other layers...is there
a solution to it?
Thanks,
Binti.
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d3ch2o$t0$1@news.eclipse.org...
> Are you invoking super.paintFigure() from your paintFigure() method?
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d3cfrl$vc9$1@news.eclipse.org...
>> I am not talking about connections. The screenshot I sent had no
>> connections. I willl try to look into 'z order'. Thanks.
>>
>> Binti.
>>
>>
>> "Brian Fernandes" <brian.fernandes@genuitec.com> wrote in message
>> news:d390av$bch$1@news.eclipse.org...
>> > Binti,
>> >
>> > Are you talking about the connections? Connections are always above the
>> > other figures because the connection layer is above the layer on which
> the
>> > figures are drawn.
>> >
>> > Also, you cannot drag a figure "over" another figure. The order in
>> > which
>> > the figures are drawn (which affects how figures overlap each other)
>> > depends on their index in the list of their siblings.
>> >
>> > Search for "z order" in this newsgroup - that thread should give you
> some
>> > pointers.
>> >
>> > Hope this helps,
>> > Brian.
>> >
>> >
>> > "Binti Sepaha" <binti@ksu.edu> wrote in message
>> > news:d376tv$evi$1@news.eclipse.org...
>> >> Hi Pratik,
>> >>
>> >> Here is a screen shot. Both these figures are opaque.
>> >>
>> >> Thanks,
>> >> Binti.
>> >>
>> >> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
>> >> news:d36ph0$ujr$1@news.eclipse.org...
>> >>> Screenshot?
>> >>>
>> >>> "Binti Sepaha" <binti@ksu.edu> wrote in message
>> >>> news:d36o0m$sls$1@news.eclipse.org...
>> >>>> Hi all,
>> >>>>
>> >>>> I have a problem. I have set the figure as Opaque. But still when I
>> >>>> drag a
>> >>>> figure over another figure, I can view the figure in the background.
>> >>>> All
>> >>> my
>> >>>> figures are drawn using the paintFigure() method. Can someone please
>> >>>> tell
>> >>>> me, what could be the possible problem here?
>> >>>>
>> >>>> Thanks,
>> >>>> Binti.
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>
>
|
|
|
Re: Figures not being Opaque [message #176603 is a reply to message #176587] |
Mon, 11 April 2005 05:32 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d3cn7i$6tj$1@news.eclipse.org...
> Thanks Pratik,
>
> That helps. But the z-order is another problem. I did not find much thread
> on it. Could you explain how and where it is set. And how to change it?
The z-order is simply the order in which the figures are listed in the
parent (which is usually the order in which they were added). A figure will
paint over any of its preceding siblings. That is to say, with two
overlapping figures, the one that was added last will be on top. To change
this order, simply change their order in the parent figure's list.
>
> Also, now the connections still show and as Brian explained, they will
> always shpw as the connection layer is on the top of other layers...is
there
> a solution to it?
Solution to what? Connections appearing over figures? So, you want your
connections to go under the figures? Switch the order in which the
connection layer and the primary layer added to the layered pane in the root
editpart. Same concept that I explained above.
>
> Thanks,
> Binti.
>
>
> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> news:d3ch2o$t0$1@news.eclipse.org...
> > Are you invoking super.paintFigure() from your paintFigure() method?
> >
> > "Binti Sepaha" <binti@ksu.edu> wrote in message
> > news:d3cfrl$vc9$1@news.eclipse.org...
> >> I am not talking about connections. The screenshot I sent had no
> >> connections. I willl try to look into 'z order'. Thanks.
> >>
> >> Binti.
> >>
> >>
> >> "Brian Fernandes" <brian.fernandes@genuitec.com> wrote in message
> >> news:d390av$bch$1@news.eclipse.org...
> >> > Binti,
> >> >
> >> > Are you talking about the connections? Connections are always above
the
> >> > other figures because the connection layer is above the layer on
which
> > the
> >> > figures are drawn.
> >> >
> >> > Also, you cannot drag a figure "over" another figure. The order in
> >> > which
> >> > the figures are drawn (which affects how figures overlap each other)
> >> > depends on their index in the list of their siblings.
> >> >
> >> > Search for "z order" in this newsgroup - that thread should give you
> > some
> >> > pointers.
> >> >
> >> > Hope this helps,
> >> > Brian.
> >> >
> >> >
> >> > "Binti Sepaha" <binti@ksu.edu> wrote in message
> >> > news:d376tv$evi$1@news.eclipse.org...
> >> >> Hi Pratik,
> >> >>
> >> >> Here is a screen shot. Both these figures are opaque.
> >> >>
> >> >> Thanks,
> >> >> Binti.
> >> >>
> >> >> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> >> >> news:d36ph0$ujr$1@news.eclipse.org...
> >> >>> Screenshot?
> >> >>>
> >> >>> "Binti Sepaha" <binti@ksu.edu> wrote in message
> >> >>> news:d36o0m$sls$1@news.eclipse.org...
> >> >>>> Hi all,
> >> >>>>
> >> >>>> I have a problem. I have set the figure as Opaque. But still when
I
> >> >>>> drag a
> >> >>>> figure over another figure, I can view the figure in the
background.
> >> >>>> All
> >> >>> my
> >> >>>> figures are drawn using the paintFigure() method. Can someone
please
> >> >>>> tell
> >> >>>> me, what could be the possible problem here?
> >> >>>>
> >> >>>> Thanks,
> >> >>>> Binti.
> >> >>>>
> >> >>>>
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>
|
|
|
Re: Figures not being Opaque [message #176638 is a reply to message #176316] |
Mon, 11 April 2005 15:13 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
setting opaque is not magic, it's just a boolean. You still need to call
super.paint(), or your bounds will not be filled in with the background
color.
|
|
|
Re: Figures not being Opaque [message #176938 is a reply to message #176603] |
Tue, 12 April 2005 15:52 |
Eclipse User |
|
|
|
Originally posted by: binti.ksu.edu
Hey thanks Pratik,
The problem of adding the children in that order is solved. But I am unable
to figure out how have the layers been added. I guess this is being done
automatically. In my code I have not cretaed any layers. How do I handle
this?
Binti.
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d3d2fv$im7$1@news.eclipse.org...
>
> "Binti Sepaha" <binti@ksu.edu> wrote in message
> news:d3cn7i$6tj$1@news.eclipse.org...
>> Thanks Pratik,
>>
>> That helps. But the z-order is another problem. I did not find much
>> thread
>> on it. Could you explain how and where it is set. And how to change it?
>
> The z-order is simply the order in which the figures are listed in the
> parent (which is usually the order in which they were added). A figure
> will
> paint over any of its preceding siblings. That is to say, with two
> overlapping figures, the one that was added last will be on top. To
> change
> this order, simply change their order in the parent figure's list.
>
>>
>> Also, now the connections still show and as Brian explained, they will
>> always shpw as the connection layer is on the top of other layers...is
> there
>> a solution to it?
>
> Solution to what? Connections appearing over figures? So, you want your
> connections to go under the figures? Switch the order in which the
> connection layer and the primary layer added to the layered pane in the
> root
> editpart. Same concept that I explained above.
>
>>
>> Thanks,
>> Binti.
>>
>>
>> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
>> news:d3ch2o$t0$1@news.eclipse.org...
>> > Are you invoking super.paintFigure() from your paintFigure() method?
>> >
>> > "Binti Sepaha" <binti@ksu.edu> wrote in message
>> > news:d3cfrl$vc9$1@news.eclipse.org...
>> >> I am not talking about connections. The screenshot I sent had no
>> >> connections. I willl try to look into 'z order'. Thanks.
>> >>
>> >> Binti.
>> >>
>> >>
>> >> "Brian Fernandes" <brian.fernandes@genuitec.com> wrote in message
>> >> news:d390av$bch$1@news.eclipse.org...
>> >> > Binti,
>> >> >
>> >> > Are you talking about the connections? Connections are always above
> the
>> >> > other figures because the connection layer is above the layer on
> which
>> > the
>> >> > figures are drawn.
>> >> >
>> >> > Also, you cannot drag a figure "over" another figure. The order in
>> >> > which
>> >> > the figures are drawn (which affects how figures overlap each other)
>> >> > depends on their index in the list of their siblings.
>> >> >
>> >> > Search for "z order" in this newsgroup - that thread should give you
>> > some
>> >> > pointers.
>> >> >
>> >> > Hope this helps,
>> >> > Brian.
>> >> >
>> >> >
>> >> > "Binti Sepaha" <binti@ksu.edu> wrote in message
>> >> > news:d376tv$evi$1@news.eclipse.org...
>> >> >> Hi Pratik,
>> >> >>
>> >> >> Here is a screen shot. Both these figures are opaque.
>> >> >>
>> >> >> Thanks,
>> >> >> Binti.
>> >> >>
>> >> >> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
>> >> >> news:d36ph0$ujr$1@news.eclipse.org...
>> >> >>> Screenshot?
>> >> >>>
>> >> >>> "Binti Sepaha" <binti@ksu.edu> wrote in message
>> >> >>> news:d36o0m$sls$1@news.eclipse.org...
>> >> >>>> Hi all,
>> >> >>>>
>> >> >>>> I have a problem. I have set the figure as Opaque. But still when
> I
>> >> >>>> drag a
>> >> >>>> figure over another figure, I can view the figure in the
> background.
>> >> >>>> All
>> >> >>> my
>> >> >>>> figures are drawn using the paintFigure() method. Can someone
> please
>> >> >>>> tell
>> >> >>>> me, what could be the possible problem here?
>> >> >>>>
>> >> >>>> Thanks,
>> >> >>>> Binti.
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>
|
|
|
Re: Figures not being Opaque [message #176946 is a reply to message #176938] |
Tue, 12 April 2005 17:00 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
It's in your root editpart. In your editor's configureGraphicalViewer()
method, you must be specifying a root editpart. Subclass that root
editpart's createPrimaryLayers() method or something like that.
"Binti Sepaha" <binti@ksu.edu> wrote in message
news:d3gr6p$pcc$1@news.eclipse.org...
> Hey thanks Pratik,
> The problem of adding the children in that order is solved. But I am
unable
> to figure out how have the layers been added. I guess this is being done
> automatically. In my code I have not cretaed any layers. How do I handle
> this?
>
> Binti.
>
>
> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> news:d3d2fv$im7$1@news.eclipse.org...
> >
> > "Binti Sepaha" <binti@ksu.edu> wrote in message
> > news:d3cn7i$6tj$1@news.eclipse.org...
> >> Thanks Pratik,
> >>
> >> That helps. But the z-order is another problem. I did not find much
> >> thread
> >> on it. Could you explain how and where it is set. And how to change it?
> >
> > The z-order is simply the order in which the figures are listed in the
> > parent (which is usually the order in which they were added). A figure
> > will
> > paint over any of its preceding siblings. That is to say, with two
> > overlapping figures, the one that was added last will be on top. To
> > change
> > this order, simply change their order in the parent figure's list.
> >
> >>
> >> Also, now the connections still show and as Brian explained, they will
> >> always shpw as the connection layer is on the top of other layers...is
> > there
> >> a solution to it?
> >
> > Solution to what? Connections appearing over figures? So, you want
your
> > connections to go under the figures? Switch the order in which the
> > connection layer and the primary layer added to the layered pane in the
> > root
> > editpart. Same concept that I explained above.
> >
> >>
> >> Thanks,
> >> Binti.
> >>
> >>
> >> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> >> news:d3ch2o$t0$1@news.eclipse.org...
> >> > Are you invoking super.paintFigure() from your paintFigure() method?
> >> >
> >> > "Binti Sepaha" <binti@ksu.edu> wrote in message
> >> > news:d3cfrl$vc9$1@news.eclipse.org...
> >> >> I am not talking about connections. The screenshot I sent had no
> >> >> connections. I willl try to look into 'z order'. Thanks.
> >> >>
> >> >> Binti.
> >> >>
> >> >>
> >> >> "Brian Fernandes" <brian.fernandes@genuitec.com> wrote in message
> >> >> news:d390av$bch$1@news.eclipse.org...
> >> >> > Binti,
> >> >> >
> >> >> > Are you talking about the connections? Connections are always
above
> > the
> >> >> > other figures because the connection layer is above the layer on
> > which
> >> > the
> >> >> > figures are drawn.
> >> >> >
> >> >> > Also, you cannot drag a figure "over" another figure. The order in
> >> >> > which
> >> >> > the figures are drawn (which affects how figures overlap each
other)
> >> >> > depends on their index in the list of their siblings.
> >> >> >
> >> >> > Search for "z order" in this newsgroup - that thread should give
you
> >> > some
> >> >> > pointers.
> >> >> >
> >> >> > Hope this helps,
> >> >> > Brian.
> >> >> >
> >> >> >
> >> >> > "Binti Sepaha" <binti@ksu.edu> wrote in message
> >> >> > news:d376tv$evi$1@news.eclipse.org...
> >> >> >> Hi Pratik,
> >> >> >>
> >> >> >> Here is a screen shot. Both these figures are opaque.
> >> >> >>
> >> >> >> Thanks,
> >> >> >> Binti.
> >> >> >>
> >> >> >> "Pratik Shah" <ppshah@us.ibm.com> wrote in message
> >> >> >> news:d36ph0$ujr$1@news.eclipse.org...
> >> >> >>> Screenshot?
> >> >> >>>
> >> >> >>> "Binti Sepaha" <binti@ksu.edu> wrote in message
> >> >> >>> news:d36o0m$sls$1@news.eclipse.org...
> >> >> >>>> Hi all,
> >> >> >>>>
> >> >> >>>> I have a problem. I have set the figure as Opaque. But still
when
> > I
> >> >> >>>> drag a
> >> >> >>>> figure over another figure, I can view the figure in the
> > background.
> >> >> >>>> All
> >> >> >>> my
> >> >> >>>> figures are drawn using the paintFigure() method. Can someone
> > please
> >> >> >>>> tell
> >> >> >>>> me, what could be the possible problem here?
> >> >> >>>>
> >> >> >>>> Thanks,
> >> >> >>>> Binti.
> >> >> >>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>
|
|
|
Re: Figures not being Opaque [message #177003 is a reply to message #176638] |
Tue, 12 April 2005 18:05 |
Eclipse User |
|
|
|
Originally posted by: binti.ksu.edu
Hi,
I did what Pratik suggested and now things look good, but the only problem
is my connections are no longer selectable. How do I change this? Also, my
connections have labels attahced to them which do not show initially, but
once i close and reopen the diagram, they appear.
Please guide me though this too :)
Binti.
"Randy Hudson" <none@us.ibm.com> wrote in message
news:d3e4h3$45o$1@news.eclipse.org...
> setting opaque is not magic, it's just a boolean. You still need to call
> super.paint(), or your bounds will not be filled in with the background
> color.
>
|
|
|
Goto Forum:
Current Time: Sat Sep 21 06:48:48 GMT 2024
Powered by FUDForum. Page generated in 0.05846 seconds
|