Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Layer for different shapes?
Layer for different shapes? [message #231642] Wed, 14 March 2007 06:26 Go to next message
Eclipse UserFriend
Originally posted by: one.eight.three.gmail.com

hi,

is it possible to draw different shapes on different layers such that on
certain events, the shapes on that layer can be hidden and then later set
to be visible?
how do i go about with this? do i need a different editpart? am working
based on the shapes example.

janice
Re: Layer for different shapes? [message #231808 is a reply to message #231642] Sat, 17 March 2007 19:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

All the EditParts' figures are added to the primary layer. But there are
many other ways of doing what you want easily.

"janice" <one.eight.three@gmail.com> wrote in message
news:e319c422864b16a47b537fd15b03e84a$1@www.eclipse.org...
> hi,
>
> is it possible to draw different shapes on different layers such that on
> certain events, the shapes on that layer can be hidden and then later set
> to be visible?
> how do i go about with this? do i need a different editpart? am working
> based on the shapes example.
>
> janice
>
Re: Layer for different shapes? [message #231837 is a reply to message #231642] Mon, 19 March 2007 10:20 Go to previous message
Eclipse UserFriend
Originally posted by: devconsole.gmail.com

janice wrote:
> is it possible to draw different shapes on different layers such that on
> certain events, the shapes on that layer can be hidden and then later
> set to be visible?

You could override createPrintableLayers() in
FreeformGraphicalRootEditPart to create an additional FreeformLayer. Use
this subclass as RootEditPart for your GraphicalViewer.

Then you could add figures to that layer, for example in your EditPart's
activate() method and call getLayer(YOUR_LAYER).setVisible().

hth
Dave
Previous Topic:Palette autohide difficult to turn off
Next Topic:Drop on a Palette
Goto Forum:
  


Current Time: Fri Apr 19 08:25:05 GMT 2024

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

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

Back to the top