public void moveDown(){
        switch (polygonPaint) {
                        case 0:
                            line.moveDwon();
                            repaint();
                            break;
                        case 1:
                            curv.moveDwon();
                            repaint();
                            break;
                        case 2:
                            triangle.moveDwon();
                            repaint();
                            break;
                        case 3:
                            rectangle.moveDwon();
                            repaint();
                            break;
                        case 4:
                            cu.moveDwon();
                            repaint();
                            break;
                        case 5:
                            elipse.moveDwon();
                            repaint();
                            break;
                        case 6:
                            arc.moveDwon();
                            repaint();
                            break;
                    }
                    repaint();
    }