Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Opaque grid
Opaque grid [message #170616] Wed, 30 January 2008 00:27 Go to next message
Eclipse UserFriend
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 12:16 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 10:39:02 EDT 2025

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

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

Back to the top