Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Layers
Layers [message #200851] Thu, 27 October 2005 21:11 Go to next message
Eclipse UserFriend
Originally posted by: eriksen.ai.sri.com

How do I add figures to different layers? I have searched google for
examples and I can't find anything about GEF and Layers. Please help.



I would like to have 3 layers: background, foreground and selection layer.
How do I do this? How do I setup rules for my figures to be added to the
right layers?



Example code or pointers are appreciated.



Thanks,



Michael
Re: Layers [message #201118 is a reply to message #200851] Sat, 29 October 2005 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mvsteenbergen.eljakim.scratch-this.nl

You just create the layers yourself (new Layer()) and add child figures
(layer.add(child)).

M.

Michael A. Eriksen wrote:
> I would like to have 3 layers: background, foreground and selection layer.
> How do I do this? How do I setup rules for my figures to be added to the
> right layers?
Re: Layers [message #201585 is a reply to message #200851] Wed, 02 November 2005 00:23 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

Put the layers in a LayeredPane.

"Michael A. Eriksen" <eriksen@ai.sri.com> wrote in message
news:djrfpg$1uk$1@news.eclipse.org...
> How do I add figures to different layers? I have searched google for
> examples and I can't find anything about GEF and Layers. Please help.
>
>
>
> I would like to have 3 layers: background, foreground and selection layer.
> How do I do this? How do I setup rules for my figures to be added to the
> right layers?
>
>
>
> Example code or pointers are appreciated.
>
>
>
> Thanks,
>
>
>
> Michael
>
>
Previous Topic:how do i add a page which is extended GraphicalEditorWithPalette ??
Next Topic:selection box in GEF
Goto Forum:
  


Current Time: Fri Dec 06 23:35:06 GMT 2024

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

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

Back to the top