use of org.gephi.tools.spi.ToolUI in project gephi by gephi.
the class Painter method getUI.
@Override
public ToolUI getUI() {
return new ToolUI() {
@Override
public JPanel getPropertiesBar(Tool tool) {
painterPanel = new PainterPanel();
painterPanel.setColor(new Color(color[0], color[1], color[2]));
return painterPanel;
}
@Override
public String getName() {
return NbBundle.getMessage(Painter.class, "Painter.name");
}
@Override
public Icon getIcon() {
return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/painter.png"));
}
@Override
public String getDescription() {
return NbBundle.getMessage(Painter.class, "Painter.description");
}
@Override
public int getPosition() {
return 100;
}
};
}
Aggregations