Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » ganttchart event resize
ganttchart event resize [message #535724] Tue, 25 May 2010 08:03 Go to next message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 415
Registered: September 2009
Senior Member
Is it currently implemented?
I couldn't find out how to resize an event using the mouse.
I never get the resize cursor.
Any pointers?

TiA
Mauro
Re: ganttchart event resize [message #535728 is a reply to message #535724] Tue, 25 May 2010 08:26 Go to previous message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 415
Registered: September 2009
Senior Member
On 25/05/2010 14.03, Mauro Condarelli wrote:
> Is it currently implemented?
> I couldn't find out how to resize an event using the mouse.
> I never get the resize cursor.
> Any pointers?
>
> TiA
> Mauro

Ok.
I made a fool of myself.
I still do not understand though.

Why the following code works:

Calendar cs = Calendar.getInstance();
Calendar ce = Calendar.getInstance();
cs.setTime(te.getDate());
ce.setTime(new Date(te.getMillis() + te.getDuration()));
ge = new GanttEvent(ganttChart, te, te.getCaption(), cs, ce, 0);
ge.setTextDisplayFormat("#name#");

.... while this does not?

Calendar c = Calendar.getInstance();
c.setTime(te.getDate());
ge = new GanttEvent(ganttChart, b.getTitle(), c);
c.setTime(new Date(te.getMillis() + te.getDuration()));
ge.setEndDate(c);
ge.setTextDisplayFormat("#name#");

What am I missing?

TiA
Mauro
Re: ganttchart event resize [message #599689 is a reply to message #535724] Tue, 25 May 2010 08:26 Go to previous message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 415
Registered: September 2009
Senior Member
On 25/05/2010 14.03, Mauro Condarelli wrote:
> Is it currently implemented?
> I couldn't find out how to resize an event using the mouse.
> I never get the resize cursor.
> Any pointers?
>
> TiA
> Mauro

Ok.
I made a fool of myself.
I still do not understand though.

Why the following code works:

Calendar cs = Calendar.getInstance();
Calendar ce = Calendar.getInstance();
cs.setTime(te.getDate());
ce.setTime(new Date(te.getMillis() + te.getDuration()));
ge = new GanttEvent(ganttChart, te, te.getCaption(), cs, ce, 0);
ge.setTextDisplayFormat("#name#");

.... while this does not?

Calendar c = Calendar.getInstance();
c.setTime(te.getDate());
ge = new GanttEvent(ganttChart, b.getTitle(), c);
c.setTime(new Date(te.getMillis() + te.getDuration()));
ge.setEndDate(c);
ge.setTextDisplayFormat("#name#");

What am I missing?

TiA
Mauro
Previous Topic:ganttchart event resize
Next Topic:gantt and databinding
Goto Forum:
  


Current Time: Tue Jul 29 00:56:11 EDT 2014

Powered by FUDForum. Page generated in 0.01723 seconds