Layer for different shapes? [message #231642] |
Wed, 14 March 2007 06:26 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03916 seconds