Interface IEventFactory

All Known Implementing Classes:
DefaultEventFactory

public interface IEventFactory
  • Method Summary

    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.
  • Method Details

    • createGanttEvent

      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. If a GanttSection is specified, it is directly added to the GanttSection aswell.
      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.