java.lang.Object
com.flexganttfx.view.graphics.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 Summary
Constructors Constructor Description LassoInfo(MouseEvent mouseEvent, Instant startTime, Instant endTime, LocalTime localStartTime, LocalTime localEndTime, List<Row<?,?,?>> rows, List<ActivityRef<?>> activities, boolean inverse)
Constructs a new info object. -
Method Summary
Modifier and Type Method Description List<ActivityRef<?>>
getActivities()
Returns the activities found inside the lasso.Instant
getEndTime()
Returns the end time of the lasso / the end.LocalTime
getLocalEndTime()
Returns the agenda end time of the lasso when the lasso is used in combination with theAgendaLayout
.LocalTime
getLocalStartTime()
Returns the agenda start time of the lasso when the lasso is used in combination with theAgendaLayout
.MouseEvent
getMouseEvent()
Returns the mouse event that triggered the lasso event.List<Row<?,?,?>>
getRows()
Returns the rows with which the lasso intersects.Instant
getStartTime()
Returns the start time of the lasso / the beginning.boolean
isInverse()
Determines if the lasso was created in inverse direction (end time before start time).String
toString()
-
Constructor Details
-
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.- Parameters:
mouseEvent
- the mouse event that triggered the lasso eventstartTime
- the beginning of the lassoendTime
- the end of the lassolocalStartTime
- the agenda start time (if used in combination withAgendaLayout
)localEndTime
- the agenda end time (if used in combination withAgendaLayout
)rows
- the rows that were selectedactivities
- the activities inside the lassoinverse
- determines if the lasso was created in inverse direction (end time before start time)
-
-
Method Details
-
getMouseEvent
Returns the mouse event that triggered the lasso event.- Returns:
- the source (mouse) event
-
getStartTime
Returns the start time of the lasso / the beginning.- Returns:
- the lasso start time
-
getEndTime
Returns the end time of the lasso / the end.- Returns:
- the lasso end time
-
getLocalStartTime
Returns the agenda start time of the lasso when the lasso is used in combination with theAgendaLayout
.- Returns:
- the agenda start time
-
getLocalEndTime
Returns the agenda end time of the lasso when the lasso is used in combination with theAgendaLayout
.- Returns:
- the agenda end time
-
getRows
Returns the rows with which the lasso intersects.- Returns:
- the affected rows.
-
getActivities
Returns the activities found inside the lasso.- Returns:
- the selected activities.
-
isInverse
public boolean isInverse()Determines if the lasso was created in inverse direction (end time before start time).- Returns:
- true if the lasso was created from right to left (end time is before start time).
-
toString
-