Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8100776

Support press-drag-release gestures involving target nodes

XMLWordPrintable

      All events during a press-drag-release (PDR) gesture are delivered to the node where the mouse was pressed, which is useful for simple gestures affecting the nodes (dragging, sliding, resizing, rotating). Drag and drop gestures are more complex, meant for data transfers, and involve also all potential target nodes.

      Sometimes it would be useful to have press-drag-release gestures involving the target nodes. The main use-case to consider is a wiring diagram - an application that allows to press on one node and drag a "wire" to another node. With simple PDR gesture it is hard to find out the target node. Drag and drop can be used for that, but it switches whole application into a completely different mode - different cursors, different node responses etc. - which is not always desirable.

      When introducing a new API for the above use-case, one more use-case should be considered. When a PDR gesture is used for dragging a node, the node remains under cursor so it would be always considered also a target node. Some applications want to drag a node to another node (and "drop" it there). There it would be useful to have events delivered to the nodes under the dragged node.

            psafrata Pavel Šafrata
            psafrata Pavel Šafrata
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: