Klasse GraphicsBase.DragAndDropInfo

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

    • DragAndDropInfo

      public DragAndDropInfo(Row<?,?,?> row, ActivityBounds activityBounds, List<ActivityBounds> selectedActivities, TimeInterval dropInterval, DragEvent dragEvent, Point2D offset)
      Creates drag-and-drop information for the current drop target.
      Parameter:
      row - the row where the drop might occur, may be null
      activityBounds - the bounds of the dragged activity
      selectedActivities - the selected activity bounds involved in the drag operation
      dropInterval - the time interval where the drop might occur
      dragEvent - the drag event
      offset - the drag offset
  • Methodendetails

    • getRow

      public Row<?,?,?> getRow()
      The row where the drop might occur.
      Gibt zurück:
      the row where drop happens
      Seit:
      1.0
    • getActivityBounds

      public ActivityBounds getActivityBounds()
      Returns the dragged / dropped activity (bounds).
      Gibt zurück:
      the activity bounds
      Seit:
      1.0
    • getSelectedActivities

      public List<ActivityBounds> getSelectedActivities()
      Returns the activities that were selected when the user initiated the drag.
      Gibt zurück:
      the selected activities
      Seit:
      1.6
    • getActivityRef

      public ActivityRef<?> getActivityRef()
      Returns the activity being dragged.
      Gibt zurück:
      the dragged activity
      Seit:
      1.2
    • getDragEvent

      public DragEvent getDragEvent()
      Returns the drag event that triggered the callback.
      Gibt zurück:
      the drag event
      Seit:
      1.0
    • getDropInterval

      public TimeInterval getDropInterval()
      Returns the time interval where the drop would take place.
      Gibt zurück:
      the the drop time interval
      Seit:
      1.0
    • getOffset

      public Point2D getOffset()
      Returns the mouse offset relative to the upper left corner of the activity.
      Gibt zurück:
      the mouse offset
      Seit:
      1.1
    • toString

      public String toString()
      Returns a string representation of this drag and drop information.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      a string representation of this drag and drop information