Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Q: Greying out objects/connections in a diagram?
Q: Greying out objects/connections in a diagram? [message #229040] Mon, 15 January 2007 10:11 Go to next message
Steinar Bang is currently offline Steinar BangFriend
Messages: 108
Registered: July 2009
Senior Member
Is it possible to grey out objects and selections in a diagram in GEF?
Does anyone know of any example code that does this?

The idea is sort of an "inverse highlighting". Ie. to have everything
except the currently interesting stuff to appear in a "disabled"
state.

Thanx!


- Steinar
Re: Q: Greying out objects/connections in a diagram? [message #229126 is a reply to message #229040] Tue, 16 January 2007 13:48 Go to previous message
Nhu Le is currently offline Nhu LeFriend
Messages: 47
Registered: July 2009
Member
I think you can do this by adding a SelectionEditPolicy to the editparts
and then in the hideSelection() and showSelection(), you can get the
editpart registry and disable/enable/change color edit parts.

Nhu

Steinar Bang wrote:
> Is it possible to grey out objects and selections in a diagram in GEF?
> Does anyone know of any example code that does this?
>
> The idea is sort of an "inverse highlighting". Ie. to have everything
> except the currently interesting stuff to appear in a "disabled"
> state.
>
> Thanx!
>
>
> - Steinar
Previous Topic:Draw2D: Automatic viewport correction?
Next Topic:Drawing connections underneath boxes
Goto Forum:
  


Current Time: Tue Oct 19 09:48:04 GMT 2021

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

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

Back to the top