Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » gantt charts synchronize
gantt charts synchronize [message #592365] Fri, 26 September 2008 15:42
Cristian is currently offline CristianFriend
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:gantt charts synchronize
Next Topic:[Grid] DefaultCellRenderer and wordwrap
Goto Forum:
  


Current Time: Thu Apr 25 18:02:15 GMT 2024

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

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

Back to the top