Package net.sourceforge.ganttproject

Examples of net.sourceforge.ganttproject.GanttCalendar.go()


                // Recup the first monday
                GanttCalendar tmpdate = date.Clone();
                tmpdate.setDay(1);
                String d = tmpdate.getdayWeek();
                while (!d.equals(language.getDay(1))) {
                    tmpdate.go(Calendar.DATE, -1);
                    d = tmpdate.getdayWeek();
                }
                // Search the exact day
                for (int i = 0; i < Y * 7 + X; i++)
                    tmpdate.go(Calendar.DATE, 1);
View Full Code Here


                    tmpdate.go(Calendar.DATE, -1);
                    d = tmpdate.getdayWeek();
                }
                // Search the exact day
                for (int i = 0; i < Y * 7 + X; i++)
                    tmpdate.go(Calendar.DATE, 1);

                // Check the validity of the month
                // if(tmpdate.getMonth() == date.getMonth())
                // date = tmpdate;
                changeDate(tmpdate);
View Full Code Here

            GanttCalendar tmpdate = date.Clone();
            TimeZone timeZone = tmpdate.getTimeZone();
            tmpdate.setDay(1);
            String d = tmpdate.getdayWeek();
            while (!d.equals(language.getDay(1))) {
                tmpdate.go(Calendar.DATE, -1);
                d = tmpdate.getdayWeek();
            }
            for (int i = 0; i < 6; i++) {
                for (int j = 0; j < 7; j++) {
                    if (tmpdate.getMonth() != date.getMonth())
View Full Code Here

                        } else
                            g.setColor(Color.black);
                    }
                    g.drawString("" + tmpdate.getDate(), j * sizex / 7 + 4,
                            30 + i * 15 - 3);
                    tmpdate.go(Calendar.DATE, 1);
                    if (timeZone != null
                            && timeZone.inDaylightTime(tmpdate.getTime())) {
                        tmpdate.add(Calendar.MILLISECOND, timeZone
                                .getDSTSavings());
                        timeZone = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.