Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [GanttChart] zoom and start date API
[GanttChart] zoom and start date API [message #1049726] Fri, 26 April 2013 07:42 Go to next message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

Hi all,
I need to know the API to change the GanttChart zoom level and the depicted starting date.
Thank you for your support

Regards


Follow me on Twitter @andreasindico

Re: [GanttChart] zoom and start date API [message #1049816 is a reply to message #1049726] Fri, 26 April 2013 09:59 Go to previous message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

I have inspected the source code.
The answer is

ganttChart.getGanttComposite().setZoomLevel(3); //or whatever level you need


and

ganttChart.getGanttComposite().showEvent(event,SWT.LEFT);




Follow me on Twitter @andreasindico

Previous Topic:XViewer Columns
Next Topic:Is it possible to draw connections over TreeViewer's composite edges?
Goto Forum:
  


Current Time: Sun Dec 21 04:52:20 GMT 2014

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

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