Package com.common.vistacalendar

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


        drawNextMonth(graph);
    }

    private void drawPreviousMonth(Graphics2D graph) {
        DateExt prevDate = currentDate.clone();
        prevDate.addMonth(-1);
        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);
View Full Code Here


        }
    }

    private void drawNextMonth(Graphics2D graph) {
        DateExt nextDate = currentDate.clone();
        nextDate.addMonth(1);
        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);
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.