Making shapes invisible & layer question [message #234157] |
Sat, 12 May 2007 13:15 |
Eclipse User |
|
|
|
Originally posted by: sebklemperama.yahoo.de
Hi Folks,
I'm relatively new to GEF, but I've already read many howtos and docs
about it. Unfortunately, two questions remain unanswered and I hope that
someone of you can help me.
I would like to draw shapes to a layer behind other figures. To do so, I
extended FreeformGraphicalRootEditPart and override createLayers, in
which I add a layer behind the primary layer (key is a string). But
where can I direct a shape to this layer? I guess this can be done by a
EditPoliy in the RootEditPart (extended FreeformGREP), but I don't know how.
My 2nd question is, how I can set a shape invisible. Setting the figure
to null seems to be dirty as setting the size to zero. Is there a better
way?
Thanks a lot for your help!
Many greeting,
Sebastian
|
|
|
Re: Making shapes invisible & layer question [message #234194 is a reply to message #234157] |
Mon, 14 May 2007 12:56 |
Eclipse User |
|
|
|
Originally posted by: sebklemperama.yahoo.de
Sebastian Klemper wrote:
> [...]
> I would like to draw shapes to a layer behind other figures. To do so, I
> extended FreeformGraphicalRootEditPart and override createLayers, in
> which I add a layer behind the primary layer (key is a string). But
> where can I direct a shape to this layer? I guess this can be done by a
> EditPoliy in the RootEditPart (extended FreeformGREP), but I don't know
> how.
I've found another thraed dealing with a similar question. Dave answered
the question with "Then you could add figures to that layer, for example
in your EditPart's activate() method and call
getLayer(YOUR_LAYER).setVisible()."
OK, I tried this, but, unsurprisingly it's inpossible to select the
figure. Is there another solution available?
> My 2nd question is, how I can set a shape invisible. Setting the figure
> to null seems to be dirty as setting the size to zero. Is there a better
> way?
This question can I answer myself when I know a solution for the first
problem. I would 'show' invisible shapes on an invisible layer.
Thank you,
Sebastian
|
|
|
Powered by
FUDForum. Page generated in 0.02827 seconds