Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ZEST Custom figures(How to highlight custom nodes?)
ZEST Custom figures [message #669521] Tue, 10 May 2011 14:59 Go to next message
Joaquin Morcate is currently offline Joaquin MorcateFriend
Messages: 52
Registered: March 2010
Member
Hi,

I have a graph with custom images for nodes. For it I have implemented MyGraphLabelProvider:
public class MyGraphLabelProvider extends LabelProvider 
       implements IFigureProvider, IEntityLabelProvider {

...

}

I would like to highlight the selected node in my graph displaying a yellow background but I don't know how to do it. Apparently the information about selections is in GraphNode and in method updateFigureForModel you have something like:
   if (highlighted == HICHLIGHTING_ON) {
	figure.setBackgroundGolor(....)
        .....
    }

But as my label provider implements IFigureProvider, instead of GraphNode I have CGraphNode that has the method updateFigureForModel overriden to do nothing.

Any idea how can I get my selected nodes highlighted?

Thank you very much

Joaquin
Re: ZEST Custom figures [message #731389 is a reply to message #669521] Fri, 30 September 2011 19:55 Go to previous message
Martin BurgerFriend
Messages: 21
Registered: July 2009
Junior Member
This seems to be a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=335136
Previous Topic:[Zest] Layout Algorithms aren't working for me in Zest 2
Next Topic:Properties view
Goto Forum:
  


Current Time: Tue Mar 19 04:02:50 GMT 2024

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

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

Back to the top