Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Making shapes invisible & layer question
Making shapes invisible & layer question [message #234157] Sat, 12 May 2007 13:15 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Adding context menu for Draw2d figures
Next Topic:Chopbox anchor feedback
Goto Forum:
  


Current Time: Tue Mar 19 10:14:29 GMT 2024

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

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

Back to the top