Class DefaultEventFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GanttEvent createGanttEvent​(GanttChart parent, GanttSection gs, java.lang.String name, java.util.Calendar start, java.util.Calendar end)
      Creates a new GanttEvent and adds it to the given GanttChart.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultEventFactory

        public DefaultEventFactory()
    • Method Detail

      • createGanttEvent

        public GanttEvent createGanttEvent​(GanttChart parent,
                                           GanttSection gs,
                                           java.lang.String name,
                                           java.util.Calendar start,
                                           java.util.Calendar end)
        Description copied from interface: IEventFactory
        Creates a new GanttEvent and adds it to the given GanttChart. If a GanttSection is specified, it is directly added to the GanttSection aswell.
        Specified by:
        createGanttEvent in interface IEventFactory
        Parameters:
        parent - The GanttChart to add the GanttEvent to.
        gs - The GanttSection to add the GanttEvent to. Can be null.
        name - The name that should be set to the GanttEvent.
        start - The start date of the GanttEvent.
        end - The end date of the GanttEvent.
        Returns:
        The newly created GanttEvent that was added to the GanttChart.