Package com.common.vistacalendar

Examples of com.common.vistacalendar.DateExt.addDay()


            x++;
            if (x > 7) {
                x = 1;
                y++;
            }
            temp.addDay(1);
        }
        drawPreviousMonth(graph);
        drawNextMonth(graph);
    }
View Full Code Here


        prevDate.setDay(prevDate.getDaysInMonth());//set last day in month. ie 28FEB or 31MARCH
        int limit = CELLCOLUMNS;
        for (int i = actualMonthStartCell - 1; i >= limit; i--) {
            Point p = getCellFromIndex(i);
            drawDay(graph, prevDate, null, (int) p.getX() + 1, (int) p.getY(), false, false);
            prevDate.addDay(-1);
        }
    }

    private void drawNextMonth(Graphics2D graph) {
        DateExt nextDate = currentDate.clone();
View Full Code Here

        nextDate.setDay(1);
        int lastCell = CELLCOLUMNS * CELLROWS;
        for (int i = actualMonthEndCell; i < lastCell; i++) {
            Point p = getCellFromIndex(i);
            drawDay(graph, nextDate, null, (int) p.getX() + 1, (int) p.getY(), false, false);
            nextDate.addDay(1);
        }
    }

    private void drawHeader(Graphics2D gr) {
        for (int i = 1; i <= 7; i++) {
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.