@Override
    public void stopEvent(){
        valid = false;
        pendulumAnimationTimeline.stop();
        setAllButtons(false);
        reset();
        graphK.resetGraph();
        graphP.resetGraph();    
    }