Opaque grid [message #170616] |
Wed, 30 January 2008 00:27  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.07488 seconds