Package org.dashbuilder.dataset.date

Examples of org.dashbuilder.dataset.date.Month


    public IntervalListMonth(ColumnGroup columnGroup) {
        super(columnGroup);
        intervalMap = new HashMap<Integer, Interval>();

        Month firstMonth = columnGroup.getFirstMonthOfYear();
        int monthIndex = firstMonth.getIndex();
        Month[] months = Month.getAll();

        for (int i = 0; i < months.length; i++) {
            Month month = months[monthIndex];
            Interval interval = new Interval(month.toString());
            this.add(interval);

            intervalMap.put(monthIndex, interval);
            monthIndex = Month.nextIndex(monthIndex);
        }
View Full Code Here


    public IntervalListQuarter(ColumnGroup columnGroup) {
        super(columnGroup);
        intervalMap = new HashMap<Integer, Interval>();

        Month firstMonth = columnGroup.getFirstMonthOfYear();
        int monthIndex = firstMonth.getIndex();

        for (int i = 0; i < 4; i++) {
            Quarter quarter = Quarter.getByIndex(i);
            Interval interval = new Interval(quarter.toString());
            this.add(interval);
View Full Code Here

TOP

Related Classes of org.dashbuilder.dataset.date.Month

Copyright © 2018 www.massapicom. 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.