Class DragCanvas<R extends Row<?,​?,​?>>

java.lang.Object
javafx.scene.Node
javafx.scene.canvas.Canvas
impl.com.flexganttfx.skin.graphics.DragCanvas<R>
All Implemented Interfaces:
Styleable, EventTarget

public class DragCanvas<R extends Row<?,​?,​?>>
extends Canvas
  • Constructor Details

  • Method Details

    • isResizable

      public boolean isResizable()
      Overrides:
      isResizable in class Node
    • prefWidth

      public double prefWidth​(double height)
      Overrides:
      prefWidth in class Node
    • prefHeight

      public double prefHeight​(double width)
      Overrides:
      prefHeight in class Node
    • draw

      public void draw​(GraphicsBase.DragAndDropInfo info)
      Draws the current drag operation based on the information found inside the info parameter. Applications can override this method and add additional functionality if needed. For this the application can use the bounds found in the "rendered bounds" list.
      Parameters:
      info - the drag information
    • getRenderedBounds

      protected final List<ActivityBounds> getRenderedBounds()
    • setIncludeSelectedActivitiesInDrag

      public final void setIncludeSelectedActivitiesInDrag​(boolean include)
    • isIncludeSelectedActivitiesInDrag

      public final boolean isIncludeSelectedActivitiesInDrag()