Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDrawing Graph on top of background image
https://www.eclipse.org/forums/index.php/mv/msg/1091131/1780025/#msg_1780025
getContentViewer().getAdapter(GridModel.class).setShowGrid(false);
but when I attempt to set the background of the viewer using
just before I activate and populate my graph ... it appears initially until I click on the graph or move a node.... then reverts to white. So this is obviously not the place to do it...
Where/How do I set the background of the IViewerCanvas such that it is stays while the graph is manipulated?
]]>Kyle Girard2018-01-16T15:20:59-00:00Re: Drawing Graph on top of background image
https://www.eclipse.org/forums/index.php/mv/msg/1091131/1785408/#msg_1785408
the style is set by FocusBehavior IIRC, i.e. you should exchange the FocusBehavior and ensure that the correct styles are applied to your viewer.
This is the case, because a blue border is displayed when the viewer has focus. Therefore, the style is set by FocusBehavior by default every time viewer focus changes.