Package org.zkoss.ganttz.timetracker

Examples of org.zkoss.ganttz.timetracker.TimeTracker$IDetailItemFilter


        limitingResourcesPanel.add(commands
                .toArray(new IToolbarCommand[commands.size()]));
    }

    private TimeTracker buildTimeTracker() {
        return timeTracker = new TimeTracker(limitingResourceQueueModel
                .getViewInterval(), ZoomLevel.DETAIL_THREE,
                SeveralModificators.create(),
                SeveralModificators.create(BankHolidaysMarker.create(getDefaultCalendar())),self);
    }
View Full Code Here


                    || horizontalPagination.isDisabled();
        }
    }

    private void savePreviousData() {
        TimeTracker timeTracker = getTimeTrackerComponent().getTimeTracker();
        this.previousStart = timeTracker.getRealInterval().getStart();
        this.previousInterval = timeTracker.getMapper().getInterval();
    }
View Full Code Here

        getTimeTrackerComponent().updateDayScroll();
        timeTracker.zoomDecrease();
    }

    private void savePreviousData() {
        TimeTracker timeTracker = getTimeTrackerComponent().getTimeTracker();
        this.previousStart = timeTracker.getRealInterval().getStart();
        this.previousInterval = timeTracker.getMapper().getInterval();
    }
View Full Code Here

        Calendar calendarRightNow = Calendar.getInstance();
        LocalDate localDateRightNow = LocalDate.fromCalendarFields(calendarRightNow);
        LocalDate initDate = localDateRightNow.minusYears(1);
        LocalDate endDate = localDateRightNow.plusYears(5);

        this.timeTracker = new TimeTracker(new Interval(
                TimeTrackerState.year(initDate.getYear()),
                TimeTrackerState.year(endDate.getYear())),
                planner.getZoomLevel(), firstLevelModificators,
                secondLevelModificators, planner);
    }
View Full Code Here

            }
        }

        private TimeTracker buildTimeTracker(ResourceLoadDisplayData dataToShow) {
            ZoomLevel zoomLevel = getZoomLevel(dataToShow);
            TimeTracker result = new TimeTracker(dataToShow.getViewInterval(),
                    zoomLevel, SeveralModificators.create(),
                    SeveralModificators.create(createBankHolidaysMarker()),
                    parent);
            setupZoomLevelListener(result);
            return result;
View Full Code Here

        }

        @Override
        void updateUI(ResourcesLoadPanel panel,
                ResourceLoadDisplayData generatedData) {
            TimeTracker timeTracker = panel.getTimeTracker();
            zoomLevelListener = fillOnZoomChange(panel);
            timeTracker.addZoomListener(zoomLevelListener);

            Timeplot newLoadChart = buildLoadChart(panel, generatedData,
                    timeTracker);
            emitter.emit(newLoadChart);
        }
View Full Code Here

            setInterval(timeTracker.getRealInterval());
        }
    }

    private void createComponents() {
        timeTracker = new TimeTracker(addMarginTointerval(), self);
        paginatorFilter = new PaginatorFilter();
        zoomLevel = FilterUtils.readZoomLevel(order);
        if (zoomLevel != null) {
            timeTracker.setZoomLevel(zoomLevel);
        }
View Full Code Here

        });
    }

    private Chart setupChart(Timeplot chartComponent,
            IChartFiller loadChartFiller, Planner planner) {
        TimeTracker timeTracker = planner.getTimeTracker();
        Chart loadChart = new Chart(chartComponent, loadChartFiller,
                timeTracker);
        loadChart.setZoomLevel(planner.getZoomLevel());
        if (planner.isVisibleChart()) {
            loadChart.fillChart();
        }
        timeTracker.addZoomListener(fillOnZoomChange(planner, loadChart));
        planner
                .addChartVisibilityListener(fillOnChartVisibilityChange(loadChart));
        return loadChart;
    }
View Full Code Here

    }

    private Chart setupChart(Order orderReloaded,
            IChartFiller loadChartFiller, Timeplot chartComponent,
            Planner planner) {
        TimeTracker timeTracker = planner.getTimeTracker();
        Chart result = new Chart(chartComponent, loadChartFiller,
                timeTracker);
        result.setZoomLevel(planner.getZoomLevel());
        if (planner.isVisibleChart()) {
            result.fillChart();
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.timetracker.TimeTracker$IDetailItemFilter

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.