Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » gantt charts synchronize
gantt charts synchronize [message #59537] Fri, 26 September 2008 15:42
Cristian is currently offline Cristian
Messages: 2
Registered: July 2009
Junior Member
I'm tryng to synchronize 2 gantts containing same information but showed
in different ways, so when scrolling a gannt I need tho other scroll too
and redraqing.

Something similar to this:

// Adding scrollbars
vBar2 = gantt.getGanttComposite().getParent()
.getVerticalBar();
vBar1 = tgantt.getGanttComposite().getParent()
.getVerticalBar();
// other stuffs about the data model....
// Adding listener to the first scrollbar
SelectionListener listener1 = new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
vBar2.setSelection(vBar1.getSelection());
((ScrolledComposite) gantt.getGanttComposite()
getParent()).setOrigin(0,vBar1.getSelection());
}
};
vBar1.addSelectionListener(listener1);
// Adding listener to the second scrollbar [...]

At the moment the scrollbar are synchronized, but the chart don't redraw
following the bar...
Previous Topic:[GalleryTreeViewer] Now groups added via refresh() appear collapsed
Next Topic:gantt charts synchronize
Goto Forum:
  


Current Time: Mon Sep 22 02:16:05 GMT 2014

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

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