gantt charts synchronize [message #59537] |
Fri, 26 September 2008 11:42 |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.05765 seconds