/** * Creates an {@link AnimationTimer} with an specified frame rate * * @param fps {@link FrameRate} we want to use for this {@link AnimationTimer} */ public AnimationTimer(FrameRate fps) { fTimer = new Timer(fps.delay(), new TimerActionListener()); }