class ActionsToolbar extends JToolBar {

    //Settings
    private Color color = new Color(0.6f, 0.6f, 0.6f);
    private float size = 10.0f;

    public ActionsToolbar() {
        initDesign();
        initContent();
    }

    private void initContent() {

        //Center on graph
        final JButton centerOnGraphButton = new JButton();
        centerOnGraphButton.setToolTipText(NbBundle.getMessage(VizBarController.class, "ActionsToolbar.centerOnGraph"));
        centerOnGraphButton.setIcon(
            ImageUtilities.loadImageIcon("VisualizationImpl/centerOnGraph.png", false));
        centerOnGraphButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                VizController.getInstance().getGraphIO().centerOnGraph();
            }
        });
        add(centerOnGraphButton);

        //Center on zero
        /*final JButton centerOnZeroButton = new JButton();
         centerOnZeroButton.setToolTipText(NbBundle.getMessage(VizBarController.class, "ActionsToolbar.centerOnZero"));
         centerOnZeroButton.setIcon(ImageUtilities.loadImageIcon("VisualizationImpl/centerOnZero.png", false));
         centerOnZeroButton.addActionListener(new ActionListener() {

         public void actionPerformed(ActionEvent e) {
         VizController.getInstance().getGraphIO().centerOnZero();
         }
         });
         add(centerOnZeroButton);*/
        //Reset colors
        final JColorButton resetColorButton = new JColorButton(color, true, false);
        resetColorButton.setToolTipText(NbBundle.getMessage(ActionsToolbar.class, "ActionsToolbar.resetColors"));
        resetColorButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent evt) {<FILL_FUNCTION_BODY>}
        });
        add(resetColorButton);

        //Reset sizes
        //Reset label colors
        final JButton resetLabelColorButton = new JButton();
        resetLabelColorButton.setIcon(ImageUtilities.loadImageIcon("VisualizationImpl/resetLabelColor.png", false));
        resetLabelColorButton
            .setToolTipText(NbBundle.getMessage(ActionsToolbar.class, "ActionsToolbar.resetLabelColors"));
        resetLabelColorButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent evt) {
                GraphController gc = Lookup.getDefault().lookup(GraphController.class);
                GraphModel gm = gc.getGraphModel();
                Graph graph = gm.getGraphVisible();
                for (Node n : graph.getNodes().toArray()) {
                    n.getTextProperties().setColor(Color.BLACK);
                    n.getTextProperties().setAlpha(0f);
                }
                for (Edge e : graph.getEdges().toArray()) {
                    e.getTextProperties().setColor(Color.BLACK);
                    e.getTextProperties().setAlpha(0f);
                }
            }
        });
        add(resetLabelColorButton);

        //Reset label visible
        final JButton resetLabelVisibleButton = new JButton();
        resetLabelVisibleButton.setIcon(ImageUtilities.loadImageIcon("VisualizationImpl/resetLabelVisible.png", false));
        resetLabelVisibleButton
            .setToolTipText(NbBundle.getMessage(ActionsToolbar.class, "ActionsToolbar.resetLabelVisible"));
        resetLabelVisibleButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent evt) {
                GraphController gc = Lookup.getDefault().lookup(GraphController.class);
                GraphModel gm = gc.getGraphModel();
                Graph graph = gm.getGraphVisible();
                for (Node n : graph.getNodes()) {
                    n.getTextProperties().setVisible(true);
                }
                for (Edge e : graph.getEdges()) {
                    e.getTextProperties().setVisible(true);
                }
            }
        });
        add(resetLabelVisibleButton);
    }

    private void initDesign() {
        setFloatable(false);
        setOrientation(JToolBar.VERTICAL);
        putClientProperty("JToolBar.isRollover", Boolean.TRUE); //NOI18N
        setBorder(BorderFactory.createEmptyBorder(0, 2, 15, 2));
        setOpaque(true);
    }

    @Override
    public void setEnabled(final boolean enabled) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                for (Component c : getComponents()) {
                    c.setEnabled(enabled);
                }
            }
        });
    }

    @Override
    public Component add(Component comp) {
        if (comp instanceof JButton) {
            UIUtils.fixButtonUI((JButton) comp);
        }
        return super.add(comp);
    }
}

                color = resetColorButton.getColor();
                GraphController gc = Lookup.getDefault().lookup(GraphController.class);
                GraphModel gm = gc.getGraphModel();
                Graph graph = gm.getGraphVisible();
                for (Node n : graph.getNodes()) {
                    n.setR(color.getRed() / 255f);
                    n.setG(color.getGreen() / 255f);
                    n.setB(color.getBlue() / 255f);
                    n.setAlpha(1f);
                }
                for (Edge e : graph.getEdges()) {
                    e.setR(color.getRed() / 255f);
                    e.setG(color.getGreen() / 255f);
                    e.setB(color.getBlue() / 255f);
                    e.setAlpha(0f);
                }
            
<methods>public void <init>() ,public void <init>(int) ,public void <init>(java.lang.String) ,public void <init>(java.lang.String, int) ,public javax.swing.JButton add(javax.swing.Action) ,public void addSeparator() ,public void addSeparator(java.awt.Dimension) ,public javax.accessibility.AccessibleContext getAccessibleContext() ,public java.awt.Component getComponentAtIndex(int) ,public int getComponentIndex(java.awt.Component) ,public java.awt.Insets getMargin() ,public int getOrientation() ,public javax.swing.plaf.ToolBarUI getUI() ,public java.lang.String getUIClassID() ,public boolean isBorderPainted() ,public boolean isFloatable() ,public boolean isRollover() ,public void setBorderPainted(boolean) ,public void setFloatable(boolean) ,public void setLayout(java.awt.LayoutManager) ,public void setMargin(java.awt.Insets) ,public void setOrientation(int) ,public void setRollover(boolean) ,public void setUI(javax.swing.plaf.ToolBarUI) ,public void updateUI() <variables>private boolean floatable,private java.awt.Insets margin,private int orientation,private boolean paintBorder,private static final java.lang.String uiClassID