Search in sources :

Example 1 with ShortestPathPanel

use of org.gephi.ui.tools.plugin.ShortestPathPanel in project gephi by gephi.

the class ShortestPath method getUI.

@Override
public ToolUI getUI() {
    return new ToolUI() {

        @Override
        public JPanel getPropertiesBar(Tool tool) {
            shortestPathPanel = new ShortestPathPanel();
            shortestPathPanel.setColor(color);
            shortestPathPanel.setStatus(NbBundle.getMessage(ShortestPath.class, "ShortestPath.status1"));
            return shortestPathPanel;
        }

        @Override
        public String getName() {
            return NbBundle.getMessage(ShortestPath.class, "ShortestPath.name");
        }

        @Override
        public Icon getIcon() {
            return new ImageIcon(getClass().getResource("/org/gephi/tools/plugin/resources/shortestpath.png"));
        }

        @Override
        public String getDescription() {
            return NbBundle.getMessage(ShortestPath.class, "ShortestPath.description");
        }

        @Override
        public int getPosition() {
            return 140;
        }
    };
}
Also used : ImageIcon(javax.swing.ImageIcon) ToolUI(org.gephi.tools.spi.ToolUI) ShortestPathPanel(org.gephi.ui.tools.plugin.ShortestPathPanel) 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 ShortestPathPanel (org.gephi.ui.tools.plugin.ShortestPathPanel)1