Class LassoEvent.LassoInfo

  • Enclosing class:
    LassoEvent

    public static final class LassoEvent.LassoInfo
    extends Object
    Stores information about the last lasso operation performed by the user. This object stores the selected rows, the selected time interval, the activities found inside the lasso.
    • Constructor Detail

      • LassoInfo

        public LassoInfo​(MouseEvent mouseEvent,
                         Instant startTime,
                         Instant endTime,
                         LocalTime localStartTime,
                         LocalTime localEndTime,
                         List<Row<?,​?,​?>> rows,
                         List<ActivityRef<?>> activities)
        Constructs a new info object.
        Parameters:
        mouseEvent - the mouse event that triggered the lasso event
        startTime - the beginning of the lasso
        endTime - the end of the lasso
        localStartTime - the agenda start time (if used in combination with AgendaLayout)
        localEndTime - the agenda end time (if used in combination with AgendaLayout)
        rows - the rows that were selected
        activities - the activities inside the lasso
    • Method Detail

      • getMouseEvent

        public MouseEvent getMouseEvent()
        Returns the mouse event that triggered the lasso event.
        Returns:
        the source (mouse) event
      • getStartTime

        public final Instant getStartTime()
        Returns the start time of the lasso / the beginning.
        Returns:
        the lasso start time
      • getEndTime

        public final Instant getEndTime()
        Returns the end time of the lasso / the end.
        Returns:
        the lasso end time
      • getLocalStartTime

        public final LocalTime getLocalStartTime()
        Returns the agenda start time of the lasso when the lasso is used in combination with the AgendaLayout.
        Returns:
        the agenda start time
      • getLocalEndTime

        public final LocalTime getLocalEndTime()
        Returns the agenda end time of the lasso when the lasso is used in combination with the AgendaLayout.
        Returns:
        the agenda end time
      • getRows

        public final List<Row<?,​?,​?>> getRows()
        Returns the rows with which the lasso intersects.
        Returns:
        the affected rows.
      • getActivities

        public final List<ActivityRef<?>> getActivities()
        Returns the activities found inside the lasso.
        Returns:
        the selected activities.