Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Opaque grid
Opaque grid [message #170616] Wed, 30 January 2008 05:27 Go to next message
Jelle Herold is currently offline Jelle HeroldFriend
Messages: 42
Registered: July 2009
Member
Hi,

How can I make the grid opaque?

I tried getting the gridlayer in configure using
getRootEditPart().getLayer(LayerConstants.GRID_LAYER) and settings it
opaque there, but that didn't work.

I also tried overriding createFigure in my contents EditPart, and
adding a custom grid there, but it is not placed in the right layer.

Thanks for any pointers!

Jelle.
Re: Opaque grid [message #171217 is a reply to message #170616] Fri, 01 February 2008 17:16 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Jelle,

You can definitely change it by overriding createGridLayer() in the
DiagramRootEditPart. To see how you can contribute a custom
DiagramRootEditPart take a look at how RenderedDiagramRootEditPart is
contributed. I haven't investigated if there is an easier way than this.

Regards,
Cherie

Jelle Herold wrote:
> Hi,
>
> How can I make the grid opaque?
>
> I tried getting the gridlayer in configure using
> getRootEditPart().getLayer(LayerConstants.GRID_LAYER) and settings it
> opaque there, but that didn't work.
>
> I also tried overriding createFigure in my contents EditPart, and adding
> a custom grid there, but it is not placed in the right layer.
>
> Thanks for any pointers!
>
> Jelle.
>
Previous Topic:Make an Life Line/message in sequence diagram
Next Topic:Disable 'Delete from Model' in the popup menu
Goto Forum:
  


Current Time: Thu Sep 26 04:48:15 GMT 2024

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

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

Back to the top