Schnittstelle ActivityRepository<A extends Activity>

Typparameter:
A - the type of activities stored in the repository
Alle Superschnittstellen:
EventTarget
Alle bekannten Unterschnittstellen:
Calendar<A>, MutableActivityRepository<A>
Alle bekannten Implementierungsklassen:
ActivityRepositoryBase, CalendarBase, IntervalTreeActivityRepository, ListActivityRepository, MutableActivityRepositoryBase, WeekendCalendar

public interface ActivityRepository<A extends Activity> extends EventTarget
Activity repositories are used by rows to store and lookup activities. Each row by default owns an IntervalTreeActivityRepository. This default repository can be replaced with a custom one, for example if your application requires a lazy loading strategy.
Seit:
1.0
Siehe auch:
  • Methodendetails

    • getActivities

      Iterator<A> getActivities(Layer layer, Instant startTime, Instant endTime, TemporalUnit temporalUnit, ZoneId zoneId)
      Returns an iterator for iterating over all activities found for the given layer and time interval. This method has to return very fast as it gets called many times during rendering of the chart. A slow implementation will have a direct impact on scrolling / rendering performance.
      Parameter:
      layer - the layer for which to return the activities
      startTime - the start time of the time interval for which to return the activities
      endTime - the end time of the time interval for which to return the activities
      temporalUnit - the temporal unit currently displayed in the dateline
      zoneId - the timezone currently displayed in the dateline
      Gibt zurück:
      the activities on the given layer and in the given time interval
      Seit:
      1.0
    • getEarliestTimeUsed

      Instant getEarliestTimeUsed()
      Returns the earliest time used by the activities stored in this repository / on this row. This method gets used for navigation (e.g. "scroll to earliest time used in the Gantt chart", "zoom out to show all activities").
      Gibt zurück:
      the earliest time used by the activities in this repository / row (null if no activities found)
      Seit:
      1.0
    • getLatestTimeUsed

      Instant getLatestTimeUsed()
      Returns the latest time used by the activities stored in this repository / on this row. This method gets used for navigation (e.g. "scroll to latest time used in the Gantt chart", "zoom out to show all activities").
      Gibt zurück:
      the latest time used by the activities in this repository / row (null if no activities found)
      Seit:
      1.0
    • addEventHandler

      void addEventHandler(EventHandler<RepositoryEvent> handler)
      Adds an event handler for receiving repository events. A repository will fire events if its state changes (e.g. activities added / removed).
      Parameter:
      handler - the event handler that will be added to the repository
      Seit:
      1.0
    • removeEventHandler

      void removeEventHandler(EventHandler<RepositoryEvent> handler)
      Removes the given event handler from the repository.
      Parameter:
      handler - the event handler that will be removed from the repository
      Seit:
      1.0