use of org.gephi.ui.tools.plugin.BrushPanel in project gephi by gephi.
the class Brush method getUI.
@Override
public ToolUI getUI() {
return new ToolUI() {
@Override
public JPanel getPropertiesBar(Tool tool) {
brushPanel = new BrushPanel();
brushPanel.setDiffusionMethod(diffusionMethod);
brushPanel.setColor(new Color(color[0], color[1], color[2]));
brushPanel.setIntensity(intensity);
return brushPanel;
}
@Override
public String getName() {
return NbBundle.getMessage(Brush.class, "Brush.name");
}
@Override
public Icon getIcon() {
return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/brush.png"));
}
@Override
public String getDescription() {
return NbBundle.getMessage(Painter.class, "Brush.description");
}
@Override
public int getPosition() {
return 110;
}
};
}
Aggregations