Class DefaultEventFactory

All Implemented Interfaces:

public class DefaultEventFactory
extends java.lang.Object
implements IEventFactory
  • Constructor Summary

    Constructor Description
  • 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.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • 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
      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.
      The newly created GanttEvent that was added to the GanttChart.