Class DragResizer


  • public class DragResizer
    extends java.lang.Object
    Allows drag resizing of a Region.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isInDraggableZone​(javafx.scene.input.MouseEvent event)
      Indicates if in the drag zone.
      static void makeResizable​(javafx.scene.layout.Region region, javafx.geometry.Orientation orientation)
      Allows making the Region resizeable.
      protected void mouseDragged​(javafx.scene.input.MouseEvent event)
      Handle dragging to resize.
      protected void mouseOver​(javafx.scene.input.MouseEvent event)
      Handle mouse over.
      protected void mousePressed​(javafx.scene.input.MouseEvent event)
      Handle start dragging.
      protected void mouseReleased​(javafx.scene.input.MouseEvent event)
      Handle mouse released.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • makeResizable

        public static void makeResizable​(javafx.scene.layout.Region region,
                                         javafx.geometry.Orientation orientation)
        Allows making the Region resizeable.
        Parameters:
        region - Region.
        orientation - Indicates whether resize horizontal or vertically.
      • isInDraggableZone

        protected boolean isInDraggableZone​(javafx.scene.input.MouseEvent event)
        Indicates if in the drag zone.
        Parameters:
        event - MouseEvent.
        Returns:
        true if in drag zone.
      • mouseOver

        protected void mouseOver​(javafx.scene.input.MouseEvent event)
        Handle mouse over.
        Parameters:
        event - MouseEvent.
      • mousePressed

        protected void mousePressed​(javafx.scene.input.MouseEvent event)
        Handle start dragging.
        Parameters:
        event - MouseEvent.
      • mouseDragged

        protected void mouseDragged​(javafx.scene.input.MouseEvent event)
        Handle dragging to resize.
        Parameters:
        event - MouseEvent.
      • mouseReleased

        protected void mouseReleased​(javafx.scene.input.MouseEvent event)
        Handle mouse released.
        Parameters:
        event - MouseEvent.