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 Details

  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object