Class TransformHandleKit

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

public class TransformHandleKit extends Object
A set of utility methods to create handles which transform a Figure by using its transform method, if the Figure is transformable.

FIXME implement me

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

    • addCornerTransformHandles

      public static void addCornerTransformHandles(TransformableFigure 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
    • addEdgeTransformHandles

      public static void addEdgeTransformHandles(TransformableFigure 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
    • addTransformHandles

      public static void addTransformHandles(TransformableFigure 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(TransformableFigure 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(TransformableFigure 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(TransformableFigure 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(TransformableFigure 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(TransformableFigure 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(TransformableFigure 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(TransformableFigure 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(TransformableFigure owner)
      Creates a handle for the specified figure.
      Parameters:
      owner - the figure which will own the handle
      Returns:
      the handle