Enum GraphicsBase.DragAndDropFeedback

    • Enum Constant Detail

      • NATIVE

        public static final GraphicsBase.DragAndDropFeedback NATIVE
        A snapshot image of the activity will be taken and placed below the mouse cursor. The image will be set at the moment the drag gesture gets recognized. Optionally a drag image provider can be used. Note: the size of the image might be different than the size of the activity (platform-specific).
        Since:
        1.1
        See Also:
        GraphicsBase.setDragImageProvider(Callback)
      • RENDERED

        public static final GraphicsBase.DragAndDropFeedback RENDERED
        The dragged activity will be constantly rendered on a separate canvas on top of the graphics area. The activity is guaranteed to keep its original size.
        Since:
        1.1
      • RENDERED_GRID_SNAPPED

        public static final GraphicsBase.DragAndDropFeedback RENDERED_GRID_SNAPPED
        The dragged activity will be constantly rendered on a separate canvas on top of the graphics area. The activity is guaranteed to keep its original size. The currently active VirtualGrid will be used to make the dragged activity snap to the grid locations.
        Since:
        1.1
    • Method Detail

      • values

        public static GraphicsBase.DragAndDropFeedback[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GraphicsBase.DragAndDropFeedback c : GraphicsBase.DragAndDropFeedback.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GraphicsBase.DragAndDropFeedback valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null