public ToolUI getUI() {
return new ToolUI() {
public JPanel getPropertiesBar(Tool tool) {
edgePencilPanel = new EdgePencilPanel();
edgePencilPanel.setColor(color);
edgePencilPanel.setWeight(weight);
edgePencilPanel.setStatus(NbBundle.getMessage(EdgePencil.class, "EdgePencil.status1"));
return edgePencilPanel;
}