Skip to main content



      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 05:11 Go to next message
Eclipse UserFriend
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 08:48 Go to previous message
Eclipse UserFriend
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:PolyLine.setBounds fails
Next Topic:New DND Transfer Mechanism
Goto Forum:
  


Current Time: Thu May 22 07:07:59 EDT 2025

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

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

Back to the top