use of org.gephi.ui.tools.plugin.EdgePencilPanel in project gephi by gephi.
the class EdgePencil method getUI.
@Override
public ToolUI getUI() {
return new ToolUI() {
@Override
public JPanel getPropertiesBar(Tool tool) {
edgePencilPanel = new EdgePencilPanel();
edgePencilPanel.setColor(color);
edgePencilPanel.setWeight(weight);
updatePanel();
return edgePencilPanel;
}
@Override
public String getName() {
return NbBundle.getMessage(EdgePencil.class, "EdgePencil.name");
}
@Override
public Icon getIcon() {
return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/edgepencil.png"));
}
@Override
public String getDescription() {
return NbBundle.getMessage(EdgePencil.class, "EdgePencil.description");
}
@Override
public int getPosition() {
return 130;
}
};
}
Aggregations