public void setWheelScale(boolean flag)
    {
        wheelScale = flag;
        if(wheelScale)
        {
            if(this.getMouseWheelListeners().length == 0)
            {
                this.addMouseWheelListener(new MouseWheelListener()
                {
                    @Override
                    public void mouseWheelMoved(MouseWheelEvent e)
                    {
                        if(e.getWheelRotation() < 0)
                        {
                            if(object != null)
                            {
                                Map<String, Integer> scale = new HashMap<String, Integer>();
                                k = 5;
                                x0 += (getWidth() / 2 - mousePoint.x) / 4;
                                y0 += (getHeight() / 2 - mousePoint.y) / 4;
                                scale.put("x0", x0);
                                scale.put("y0", y0);
                                scale.put("k", k);
                                updateObject(scale);
                            }
                        }
                        else
                        {
                            if(object != null)
                            {
                                Map<String, Integer> scale = new HashMap<String, Integer>();
                                k = -5;
                                x0 += (getWidth() / 2 - mousePoint.x) / 4;
                                y0 += (getHeight() / 2 - mousePoint.y) / 4;
                                scale.put("x0", x0);
                                scale.put("y0", y0);
                                scale.put("k", k);
                                updateObject(scale);
                            }
                        }
                    }
                });
            }
        }
        else
        {
            if(this.getMouseWheelListeners().length != 0)
            {
                this.removeMouseWheelListener(this.getMouseWheelListeners()[0]);
            }
        }
    }