Package org.zkoss.ganttz.timetracker.zoom

Examples of org.zkoss.ganttz.timetracker.zoom.IDetailItemModificator


        this.configuration = configuration;
        this.adapter = configuration.getAdapter();
        this.navigator = configuration.getNavigator();
        this.diagramGraph = diagramGraph;

        final IDetailItemModificator firstLevelModificators = configuration
                .getFirstLevelModificators();
        final IDetailItemModificator secondLevelModificators = configuration
                .getSecondLevelModificators();

        Calendar calendarRightNow = Calendar.getInstance();
        LocalDate localDateRightNow = LocalDate.fromCalendarFields(calendarRightNow);
        LocalDate initDate = localDateRightNow.minusYears(1);
View Full Code Here


    }

    private IDetailItemModificator createStartDeadlineMarker(Order order) {
        final DateTime projectStart = new DateTime(order.getInitDate());
        final DateTime deadline = new DateTime(order.getDeadline());
        IDetailItemModificator detailItemModificator;

        if (order.getInitDate() != null) {
            if (order.getDeadline() != null) {
                // Both project Start and deadline markers
                detailItemModificator = new IDetailItemModificator() {
                    @Override
                    public DetailItem applyModificationsTo(DetailItem item,
                            ZoomLevel z) {
                        item.markDeadlineDay(deadline);
                        item.markProjectStart(projectStart);
                        return item;
                    }
                };
            } else {
                // Project Start without deadline
                detailItemModificator = new IDetailItemModificator() {
                    @Override
                    public DetailItem applyModificationsTo(DetailItem item,
                            ZoomLevel z) {
                        item.markProjectStart(projectStart);
                        return item;
                    }
                };
            }
        } else {
            // Only project deadline marker
            detailItemModificator = new IDetailItemModificator() {
                @Override
                public DetailItem applyModificationsTo(DetailItem item,
                        ZoomLevel z) {
                    item.markDeadlineDay(deadline);
                    return item;
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.timetracker.zoom.IDetailItemModificator

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.