@Override
        public void mouseWheelMoved(MouseWheelEvent e) {
            int notches = e.getWheelRotation();
            if (notches > 0) {
                if (currentTool == Tool.DOT) {
                    currentTool = Tool.SPRAY;
                } else if (currentTool == Tool.SPRAY) {
                    currentTool = Tool.LINE;
                } else {
                    currentTool = Tool.DOT;
                }
            } else {
                if (currentTool == Tool.SPRAY) {
                    currentTool = Tool.DOT;
                } else if (currentTool == Tool.LINE) {
                    currentTool = Tool.SPRAY;
                } else {
                    currentTool = Tool.LINE;
                }
            }
        }