Class ResizeHandleKit

java.lang.Object
org.jhotdraw8.draw.handle.ResizeHandleKit

public class ResizeHandleKit extends Object
/** A set of utility methods to create handles which resize a Figure by using its reshapeInLocal method, if the Figure is transformable.
Author:
Werner Randelshofer
  • Field Details

    • NORTH_SHAPE

      protected static final javafx.scene.shape.SVGPath NORTH_SHAPE
    • EAST_SHAPE

      protected static final javafx.scene.shape.SVGPath EAST_SHAPE
    • WEST_SHAPE

      protected static final javafx.scene.shape.SVGPath WEST_SHAPE
    • SOUTH_SHAPE

      protected static final javafx.scene.shape.SVGPath SOUTH_SHAPE
    • NORTH_EAST_SHAPE

      protected static final javafx.scene.shape.SVGPath NORTH_EAST_SHAPE
    • NORTH_WEST_SHAPE

      protected static final javafx.scene.shape.SVGPath NORTH_WEST_SHAPE
    • SOUTH_EAST_SHAPE

      protected static final javafx.scene.shape.SVGPath SOUTH_EAST_SHAPE
    • SOUTH_WEST_SHAPE

      protected static final javafx.scene.shape.SVGPath SOUTH_WEST_SHAPE
  • Method Details

    • addCornerResizeHandles

      public static void addCornerResizeHandles(Figure f, @NonNull Collection<Handle> handles)
      Creates handles for each corner of a figure and adds them to the provided collection.
      Parameters:
      f - the figure which will own the handles
      handles - the list to which the handles should be added
    • addEdgeResizeHandles

      public static void addEdgeResizeHandles(Figure f, @NonNull Collection<Handle> handles)
      Fills the given collection with handles at each the north, south, east, and west of the figure.
      Parameters:
      f - the figure which will own the handles
      handles - the list to which the handles should be added
    • addResizeHandles

      public static void addResizeHandles(Figure f, @NonNull Collection<Handle> handles)
      Fills the given collection with handles at each the north, south, east, and west of the figure.
      Parameters:
      f - the figure which will own the handles
      handles - the list to which the handles should be added
    • south

      public static @NonNull Handle south(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • southEast

      public static @NonNull Handle southEast(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • southWest

      public static @NonNull Handle southWest(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • north

      public static @NonNull Handle north(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • northEast

      public static @NonNull Handle northEast(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • northWest

      public static @NonNull Handle northWest(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • east

      public static @NonNull Handle east(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle
    • west

      public static @NonNull Handle west(Figure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle