Class AnimatorInterface.AnimationThread

java.lang.Object
java.lang.Thread
nl.tudelft.simulation.dsol.simulators.AnimatorInterface.AnimationThread
All Implemented Interfaces:
Runnable
Enclosing interface:
AnimatorInterface

public static class AnimatorInterface.AnimationThread extends Thread
The separate thread that takes care of the animation.

Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

Author:
Alexander Verbraeck
  • Constructor Details

    • AnimationThread

      public AnimationThread(AnimatorInterface animator)
      Parameters:
      animator - AnimatorInterface; the animator.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • stopAnimation

      public void stopAnimation()
      Stop the animation.