Package org.gephi.tools.spi
Interface NodePressAndDraggingEventListener
-
- All Superinterfaces:
ToolEventListener
public interface NodePressAndDraggingEventListener extends ToolEventListener
Tool mouse press and dragging listener. Listen to a single node press on the visualization window and trigger selected nodes, then triggers continuously the recorded drag displacement.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.
- Author:
- Mathieu Bastian
- See Also:
Tool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
drag(float displacementX, float displacementY)
Notify mouse is draggingvoid
pressNodes(Node[] nodes)
Notifynodes
have been pressed by user on the visualization window.void
released()
Notify mouse has been released.
-
-
-
Method Detail
-
pressNodes
void pressNodes(Node[] nodes)
Notifynodes
have been pressed by user on the visualization window.- Parameters:
nodes
- the clicked nodes
-
drag
void drag(float displacementX, float displacementY)
Notify mouse is dragging- Parameters:
displacementX
- distance xdisplacementY
- distance y
-
released
void released()
Notify mouse has been released.
-
-