Class EventLayoutComputer

java.lang.Object
org.eclipse.nebula.widgets.compositetable.day.internal.EventLayoutComputer

public class EventLayoutComputer
extends java.lang.Object
Represents a model of how the events are laid out in a particular day
Since:
3.2
  • Constructor Summary

    Constructors 
    Constructor Description
    EventLayoutComputer​(int numberOfDivisionsInHour)
    Construct a DayModel for an IEventEditor.
  • Method Summary

    Modifier and Type Method Description
    CalendarableItem[][] computeEventLayout​(java.util.List calendarables)
    Given an unsorted list of Calendarables, each of which has a start and an end time, this method will compute the day row coordinates for each Calendarable, set that information into each Calendarable, and will return the number of columns that will be required to lay out the given list of Calendarables.

    Methods inherited from class java.lang.Object

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

    • EventLayoutComputer

      public EventLayoutComputer​(int numberOfDivisionsInHour)
      Construct a DayModel for an IEventEditor. TODO: We could make numberOfDivisionsInHour a parameter to getEventLayout()
      Parameters:
      numberOfDivisionsInHour -
  • Method Details

    • computeEventLayout

      public CalendarableItem[][] computeEventLayout​(java.util.List calendarables)
      Given an unsorted list of Calendarables, each of which has a start and an end time, this method will compute the day row coordinates for each Calendarable, set that information into each Calendarable, and will return the number of columns that will be required to lay out the given list of Calendarables.
      Parameters:
      calendarables - A list of Calenderables
      Returns:
      The number of columns required to lay out those Calendarables.