use of org.gephi.ui.tools.plugin.NodePencilPanel in project gephi by gephi.
the class NodePencil method getUI.
@Override
public ToolUI getUI() {
return new ToolUI() {
@Override
public JPanel getPropertiesBar(Tool tool) {
nodePencilPanel = new NodePencilPanel();
nodePencilPanel.setColor(color);
nodePencilPanel.setNodeSize(size);
return nodePencilPanel;
}
@Override
public String getName() {
return NbBundle.getMessage(NodePencil.class, "NodePencil.name");
}
@Override
public Icon getIcon() {
return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/nodepencil.png"));
}
@Override
public String getDescription() {
return NbBundle.getMessage(NodePencil.class, "NodePencil.description");
}
@Override
public int getPosition() {
return 120;
}
};
}
Aggregations