Enum Class DropZone

java.lang.Object
java.lang.Enum<DropZone>
org.jhotdraw8.fxcontrols.dock.DropZone
All Implemented Interfaces:
Serializable, Comparable<DropZone>, Constable

public enum DropZone extends Enum<DropZone>
Defines a drop zone for the drag and drop operation of a DockChild.
Author:
Werner Randelshofer
  • Enum Constant Details

    • TOP

      public static final DropZone TOP
      Denotes the left edge of a Dock.
    • LEFT

      public static final DropZone LEFT
      Denotes the left edge of a Dock.
    • BOTTOM

      public static final DropZone BOTTOM
      Denotes the bottom edge of a Dock.
    • CENTER

      public static final DropZone CENTER
      Denotes the center of a Dock.
  • Method Details

    • values

      public static DropZone[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DropZone valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null