public void draggArrow(MouseEvent e) {

        if (this.leftArrow) {
            if (e.getX() < this.positionXSlider) {
                this.left.setLocation(this.positionXSlider);

            } else if (e.getX() + this.buttonWidth > this.right.getX()) {
                this.left.setLocation(this.right.getX() - this.buttonWidth);

            } else {
                this.left.setLocation(e.getX());
            }

            this.rangeModel.setMinimum((this.left.getX() - this.buttonWidth) * (rangeModel.getInterval()) / this.maxWidthSeparator);

        }

        if (this.rightArrow) {
            if (e.getX() + buttonWidth > this.positionXSlider + this.sizeSlider) {

                this.right.setLocation(this.positionXSlider + this.sizeSlider - buttonWidth);

            } else if (e.getX() < this.left.getX() + this.buttonWidth) {
                this.right.setLocation(this.left.getX() + this.buttonWidth);

            } else {
                this.right.setLocation(e.getX());
            }
            this.rangeModel.setMaximum((this.right.getX() - 2 * this.buttonWidth) * (rangeModel.getInterval()) / this.maxWidthSeparator);

        }
        repaint();

    }