static void bindMouseEvents(Drawer drawer, Component component) {


        MouseAdapter mouseAdapter = new MouseAdapter() {

            public void mouseClicked(MouseEvent evt) {


                if ((evt.getModifiers() & InputEvent.BUTTON1_MASK) != 0) {
//                    source.setText(source.getText() + "nLeft mouse button clicked on point [" + evt.getPoint().x + "," + evt.getPoint().y + "]");
                }

                if ((evt.getModifiers() & InputEvent.BUTTON2_MASK) != 0) {
                }

                if ((evt.getModifiers() & InputEvent.BUTTON3_MASK) != 0) {
                }
            }
        };


        MouseWheelListener listener = e -> {
            if (e.getWheelRotation() > 0) {
                drawer.setScale(drawer.scale * 0.9);
            } else {
                drawer.setScale(drawer.scale * 1.1);
            }

        };


        component.addMouseWheelListener(listener);
        component.addMouseListener(mouseAdapter);
    }