public interface Tool
A tool receive events from visualization window when it is currently the selected tool. The visualization window toolbar presents all available tools implementations.
Example: A Brush tool colors clicked nodes.
Tool
interface@ServiceProvider(service=Tool.class)
ToolEventListener
instances for specifying how the tool
is interacting with user input like node click or mouse drag.ToolUI
instance for giving a name and an icon to your
tool.Modifier and Type | Method and Description |
---|---|
ToolEventListener[] |
getListeners()
Returns the declared tool listeners for this tool.
|
ToolSelectionType |
getSelectionType()
Returns the tool type of selection interaction.
|
ToolUI |
getUI()
Returns
ToolUI instance for this tool. |
void |
select()
Notify when this tool is selected.
|
void |
unselect()
Notify when this tool is unselected.
|
void select()
void unselect()
ToolEventListener[] getListeners()
ToolUI getUI()
ToolUI
instance for this tool.ToolSelectionType getSelectionType()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.