@Override
    public void mouseDragged(float x, float y, MouseEvent e) {

        if (active == null) {
            // deligiere an moegliche untergruppen weiter
            for (PolygonGroup i : subGroupsToInform) {
                i.mouseDragged(x, y, e);
            }
        }
        if (active != null) {
            switch (mouseClickButton) {
                case 1: {
                    moveObject(active, x, y);
                    break;
                }
                case 3: {
                    rotateObject(active, x, y);
                    break;
                }
            }

        }
    }