public interface NodePressAndDraggingEventListener extends ToolEventListener
The drag displacement is the difference between the start position and the current position in a 2D bottom-left coordinate system.
A tool which declares this listener is notified at a certain rate, up to multiple times per second, the selected nodes.
Tool
Modifier and Type | Method and Description |
---|---|
void |
drag(float displacementX,
float displacementY)
Notify mouse is dragging
|
void |
pressNodes(Node[] nodes)
Notify
nodes have been pressed by user on the visualization
window. |
void |
released()
Notify mouse has been released.
|
void pressNodes(Node[] nodes)
nodes
have been pressed by user on the visualization
window.nodes
- the clicked nodesvoid drag(float displacementX, float displacementY)
displacementX
- distance xdisplacementY
- distance yvoid released()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.