Package net.sourceforge.ganttproject.task.algorithm

Examples of net.sourceforge.ganttproject.task.algorithm.AdjustTaskBoundsAlgorithm


        //
        task1.setStart(new GanttCalendar(2000, 01, 02));
        task2.setStart(new GanttCalendar(2000, 01, 02));
        task2.setEnd(new GanttCalendar(2000, 01, 03));
        //
        AdjustTaskBoundsAlgorithm alg = taskManager.getAlgorithmCollection()
                .getAdjustTaskBoundsAlgorithm();
        alg.run(new Task[] { task1, task2 });
        //
        assertEquals("Unexpected start of supertask=" + supertask,
                new GanttCalendar(2000, 01, 02), supertask.getStart());
        assertEquals("Unexpected end of supertask=" + supertask,
                new GanttCalendar(2000, 01, 03), supertask.getEnd());
View Full Code Here


      level2task1.setStart(newMonday());
      level2task1.setEnd(newTuesday());
      //
      level2task1.setEnd(newWendesday());
      //
        AdjustTaskBoundsAlgorithm alg = taskManager.getAlgorithmCollection().getAdjustTaskBoundsAlgorithm();
        alg.run(new Task[] { level2task1 });
      //
        assertEquals("Unexpected end of the topleveltask="+supertask, newWendesday(), supertask.getEnd());
    }
View Full Code Here

                            father = getFatherNode(current/* ttask */);
                            where = father.getIndex(current);
                            removeCurrentNode(current);
                            current.setParent(father);
                            taskFather = (GanttTask) father.getUserObject();
                            AdjustTaskBoundsAlgorithm alg = getTaskManager()
                                    .getAlgorithmCollection()
                                    .getAdjustTaskBoundsAlgorithm();
                            alg.run(taskFather);
                            // taskFather.refreshDateAndAdvancement(this);
                            father.setUserObject(taskFather);
                        }
                    }
                    if (father.getChildCount() == 0)
View Full Code Here

        /*
         * this will add new custom columns to the newly created task.
         */
        getCustomColumnsStorage().processNewTask(task);

        AdjustTaskBoundsAlgorithm alg = getTaskManager()
                .getAlgorithmCollection().getAdjustTaskBoundsAlgorithm();
        alg.run(task);
        RecalculateTaskCompletionPercentageAlgorithm alg2 = getTaskManager()
                .getAlgorithmCollection()
                .getRecalculateTaskCompletionPercentageAlgorithm();
        alg2.run(task);
        area.repaint();
View Full Code Here

                                    .getFatherNode(ttask);
                            tree.removeCurrentNode(cdmtn[i]);
                            if (father != null) {
                                GanttTask taskFather = (GanttTask) father
                                        .getUserObject();
                                AdjustTaskBoundsAlgorithm alg = getTaskManager()
                                        .getAlgorithmCollection()
                                        .getAdjustTaskBoundsAlgorithm();
                                alg.run(taskFather);
                                // taskFather.refreshDateAndAdvancement(tree);
                                father.setUserObject(taskFather);
                                fathers.add(father);
                            }
                        } else if (cdmtn[i] != null
View Full Code Here

            protected TaskContainmentHierarchyFacade createContainmentFacade() {
                return TaskManagerImpl.this.getTaskHierarchy();
            }

        };
        AdjustTaskBoundsAlgorithm alg3 = new AdjustTaskBoundsAlgorithm() {
            protected TaskContainmentHierarchyFacade createContainmentFacade() {
                return TaskManagerImpl.this.getTaskHierarchy();
            }
        };
        RecalculateTaskScheduleAlgorithm alg2 = new RecalculateTaskScheduleAlgorithm(
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.task.algorithm.AdjustTaskBoundsAlgorithm

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.