Class CalendarActivityBase<T>

java.lang.Object
com.flexganttfx.model.activity.ActivityBase<T>
com.flexganttfx.model.calendar.CalendarActivityBase<T>
Type Parameters:
T - the type of an optional user object
All Implemented Interfaces:
Activity, CalendarActivity
Direct Known Subclasses:
WeekendCalendarActivity

public class CalendarActivityBase<T>
extends ActivityBase<T>
implements CalendarActivity
The base implementation of a calendar activity.
Since:
1.0
  • Constructor Details

    • CalendarActivityBase

      public CalendarActivityBase()
      Constructs a new calendar activity. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Since:
      1.0
    • CalendarActivityBase

      public CalendarActivityBase​(String name)
      Constructs a new calendar activity with the given name. The initial start time will be set to Instant.now() and the end time will be equal to Instant.now() plus the value of ActivityBase.DEFAULT_DURATION.
      Parameters:
      name - the name of the activity
      Since:
      1.0
    • CalendarActivityBase

      public CalendarActivityBase​(Instant startTime, Instant endTime)
      Constructs a new calendar activity with the start time and end time.
      Parameters:
      startTime - the start time of the activity
      endTime - the end time of the activity
      Since:
      1.0
    • CalendarActivityBase

      public CalendarActivityBase​(String name, Instant startTime, Instant endTime)
      Constructs a new calendar activity with the given name, start time, and end time.
      Parameters:
      name - the name of the activity
      startTime - the start time of the activity
      endTime - the end time of the activity
      Since:
      1.0