Module com.flexganttfx.view
Package com.flexganttfx.view.graphics
Class GraphicsBase.DragAndDropInfo
- java.lang.Object
-
- com.flexganttfx.view.graphics.GraphicsBase.DragAndDropInfo
-
- Enclosing class:
- GraphicsBase<R extends Row<?,?,?>>
public static class GraphicsBase.DragAndDropInfo extends Object
The drag and drop info class aggregates the various pieces of information that the application might be interested in while a drag and drop operation is in progress.- Since:
- 1.0
- See Also:
GraphicsBase.dragAndDropInfoProperty()
-
-
Constructor Summary
Constructors Constructor Description DragAndDropInfo(Row<?,?,?> row, ActivityBounds activityBounds, List<ActivityBounds> selectedActivities, TimeInterval dropInterval, DragEvent dragEvent, Point2D offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityBounds
getActivityBounds()
Returns the dragged / dropped activity (bounds).ActivityRef<?>
getActivityRef()
Returns the activity being dragged.DragEvent
getDragEvent()
Returns the drag event that triggered the callback.TimeInterval
getDropInterval()
Returns the time interval where the drop would take place.Point2D
getOffset()
Returns the mouse offset relative to the upper left corner of the activity.Row<?,?,?>
getRow()
The row where the drop might occur.List<ActivityBounds>
getSelectedActivities()
Returns the activities that were selected when the user initiated the drag.String
toString()
-
-
-
Constructor Detail
-
DragAndDropInfo
public DragAndDropInfo(Row<?,?,?> row, ActivityBounds activityBounds, List<ActivityBounds> selectedActivities, TimeInterval dropInterval, DragEvent dragEvent, Point2D offset)
-
-
Method Detail
-
getRow
public Row<?,?,?> getRow()
The row where the drop might occur.- Returns:
- the row where drop happens
- Since:
- 1.0
-
getActivityBounds
public ActivityBounds getActivityBounds()
Returns the dragged / dropped activity (bounds).- Returns:
- the activity bounds
- Since:
- 1.0
-
getSelectedActivities
public List<ActivityBounds> getSelectedActivities()
Returns the activities that were selected when the user initiated the drag.- Returns:
- the selected activities
- Since:
- 1.6
-
getActivityRef
public ActivityRef<?> getActivityRef()
Returns the activity being dragged.- Returns:
- the dragged activity
- Since:
- 1.2
-
getDragEvent
public DragEvent getDragEvent()
Returns the drag event that triggered the callback.- Returns:
- the drag event
- Since:
- 1.0
-
getDropInterval
public TimeInterval getDropInterval()
Returns the time interval where the drop would take place.- Returns:
- the the drop time interval
- Since:
- 1.0
-
getOffset
public Point2D getOffset()
Returns the mouse offset relative to the upper left corner of the activity.- Returns:
- the mouse offset
- Since:
- 1.1
-
-