Klasse LassoEvent.LassoInfo

java.lang.Object
com.flexganttfx.view.graphics.LassoEvent.LassoInfo
Umschließende Klasse:
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.
Seit:
1.0
  • Konstruktordetails

    • LassoInfo

      public LassoInfo(MouseEvent mouseEvent, Instant startTime, Instant endTime, LocalTime localStartTime, LocalTime localEndTime, List<Row<?,?,?>> rows, List<ActivityRef<?>> activities, boolean inverse)
      Constructs a new info object.
      Parameter:
      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
      inverse - determines if the lasso was created in inverse direction (end time before start time)
  • Methodendetails

    • getMouseEvent

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

      public Instant getStartTime()
      Returns the start time of the lasso / the beginning.
      Gibt zurück:
      the lasso start time
    • getEndTime

      public Instant getEndTime()
      Returns the end time of the lasso / the end.
      Gibt zurück:
      the lasso end time
    • getLocalStartTime

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

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

      public List<Row<?,?,?>> getRows()
      Returns the rows with which the lasso intersects.
      Gibt zurück:
      the affected rows.
    • getActivities

      public List<ActivityRef<?>> getActivities()
      Returns the activities found inside the lasso.
      Gibt zurück:
      the selected activities.
    • isInverse

      public boolean isInverse()
      Determines if the lasso was created in inverse direction (end time before start time).
      Gibt zurück:
      true if the lasso was created from right to left (end time is before start time).
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object