Package org.gephi.tools.spi
Tools are functions for interacting with user inputs on the visualization window.
How-to create a tool implementation
- Create a class which implement
Toolinterface - Add the following annotation to your class to be declared as a new implementation
@ServiceProvider(service=Tool.class) - Declare
ToolEventListenerinstances for specifying how the tool is interacting with user input like node click or mouse drag. - Provide a
ToolUIinstance for giving a name and an icon to your tool.
-
Interface Summary Interface Description MouseClickEventListener Tool mouse click listener.NodeClickEventListener Tool node click listener.NodePressAndDraggingEventListener Tool mouse press and dragging listener.NodePressingEventListener Tool mouse pressing listener.Tool Tools are functions for interacting with user inputs on the visualization window.ToolEventListener Listeners used byToolclasses for receiving events from the visualization window like mouse click, mouse drag, node click etc.ToolUI Tool's user interface attributes: name, description, icon and a properties bar. -
Enum Summary Enum Description ToolSelectionType Enum setting forToolimplementations. -
Exception Summary Exception Description UnselectToolException