Search in sources :

Example 1 with NodePencilPanel

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;
        }
    };
}
Also used : NodePencilPanel(org.gephi.ui.tools.plugin.NodePencilPanel) ImageIcon(javax.swing.ImageIcon) ToolUI(org.gephi.tools.spi.ToolUI) Tool(org.gephi.tools.spi.Tool)

Aggregations

ImageIcon (javax.swing.ImageIcon)1 Tool (org.gephi.tools.spi.Tool)1 ToolUI (org.gephi.tools.spi.ToolUI)1 NodePencilPanel (org.gephi.ui.tools.plugin.NodePencilPanel)1