Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » FreeFormLayer#setOpaque(true) prevents multiple selection?
FreeFormLayer#setOpaque(true) prevents multiple selection? [message #196217] Fri, 16 September 2005 22:55 Go to next message
Alberto Ricart is currently offline Alberto RicartFriend
Messages: 33
Registered: July 2009
Member
Hello,

I have run into an issue where on my top level figure, calling
setOpaque(true) so that the bgcolor displays, prevents multiple
selection from working:

protected IFigure createFigure()
{
IFigure retVal = new FreeformLayer();
// setting this prevents multiple selection from working
retVal.setOpaque(true);
retVal.setBorder(new MarginBorder(3));
retVal.setLayoutManager(new FreeformLayout());

return retVal;
}

Is there a workaround for this?

Thanks,


/a
Re: FreeFormLayer#setOpaque(true) prevents multiple selection? [message #196324 is a reply to message #196217] Sat, 17 September 2005 16:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

Override Layer#containsPoint() to act as though the layer's transparent.
However, you won't be able to see any layers underneath the opaque layer.

"Alberto Ricart" <aricart@tibco.com> wrote in message
news:dgfig8$rof$1@news.eclipse.org...
> Hello,
>
> I have run into an issue where on my top level figure, calling
> setOpaque(true) so that the bgcolor displays, prevents multiple
> selection from working:
>
> protected IFigure createFigure()
> {
> IFigure retVal = new FreeformLayer();
> // setting this prevents multiple selection from working
> retVal.setOpaque(true);
> retVal.setBorder(new MarginBorder(3));
> retVal.setLayoutManager(new FreeformLayout());
>
> return retVal;
> }
>
> Is there a workaround for this?
>
> Thanks,
>
>
> /a
Re: FreeFormLayer#setOpaque(true) prevents multiple selection? [message #196364 is a reply to message #196217] Mon, 19 September 2005 04:18 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

By multiple selection, do you mean the Marquee selection? The root editpart
returns the marquee drag tracker when asked for a tracker. Probably your
contents editpart is being asked now that it is opaque.

see getDragTracker(...)

"Alberto Ricart" <aricart@tibco.com> wrote in message
news:dgfig8$rof$1@news.eclipse.org...
> Hello,
>
> I have run into an issue where on my top level figure, calling
> setOpaque(true) so that the bgcolor displays, prevents multiple selection
> from working:
>
> protected IFigure createFigure()
> {
> IFigure retVal = new FreeformLayer();
> // setting this prevents multiple selection from working
> retVal.setOpaque(true);
> retVal.setBorder(new MarginBorder(3));
> retVal.setLayoutManager(new FreeformLayout());
>
> return retVal;
> }
>
> Is there a workaround for this?
>
> Thanks,
>
>
> /a
Previous Topic:KeyListeners
Next Topic:Need to get the Project name in which I am currently working in
Goto Forum:
  


Current Time: Wed Jan 22 09:17:32 GMT 2025

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

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

Back to the top