Class AnimationToggles

java.lang.Object
org.opentrafficsim.swing.gui.AnimationToggles

public final class AnimationToggles extends Object
Set the default animation toggles for the simulation panel.

Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Method Details

    • setTextAnimationTogglesFull

      public static void setTextAnimationTogglesFull(OtsSimulationPanel panel)
      Set all animation on, and create the toggles on the left hand side.
      Parameters:
      panel - simulation panel
    • setTextAnimationTogglesStandard

      public static void setTextAnimationTogglesStandard(OtsSimulationPanel panel)
      Set the most common animation on, and create the toggles on the left hand side.
      Parameters:
      panel - the simulation panel
    • setIconAnimationTogglesFull

      public static void setIconAnimationTogglesFull(OtsSimulationPanel panel)
      Set all animation on, and create the toggles on the left hand side.
      Parameters:
      panel - the simulation panel
    • setIconAnimationTogglesStandard

      public static void setIconAnimationTogglesStandard(OtsSimulationPanel panel)
      Set the most common animation on, and create the toggles on the left hand side.
      Parameters:
      panel - the simulation panel
    • showAnimationClass

      public static void showAnimationClass(OtsSimulationPanel panel, Class<? extends Locatable> locatableClass)
      Set a class to be shown in the animation to true.
      Parameters:
      panel - the simulation panel
      locatableClass - the class for which the animation has to be shown
    • hideAnimationClass

      public static void hideAnimationClass(OtsSimulationPanel panel, Class<? extends Locatable> locatableClass)
      Set a class to be shown in the animation to false.
      Parameters:
      panel - the simulation panel
      locatableClass - the class for which the animation has to be hidden
    • showAnimationFull

      public static void showAnimationFull(OtsSimulationPanel panel)
      Set all animation on, and create the toggles on the left hand side.
      Parameters:
      panel - the simulation panel
    • showAnimationStandard

      public static void showAnimationStandard(OtsSimulationPanel panel)
      Set the most common animation on, and create the toggles on the left hand side.
      Parameters:
      panel - the simulation panel