ganttchart event resize [message #535724] |
Tue, 25 May 2010 08:03  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06091 seconds