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
Tool
interface - Add the following annotation to your class to be declared as a new implementation
@ServiceProvider(service=Tool.class)
- Declare
ToolEventListener
instances for specifying how the tool is interacting with user input like node click or mouse drag. - Provide a
ToolUI
instance 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 byTool
classes 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 forTool
implementations. -
Exception Summary Exception Description UnselectToolException