Package org.opentrafficsim.swing.gui
Class AnimationToggles
java.lang.Object
org.opentrafficsim.swing.gui.AnimationToggles
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 Summary
Modifier and TypeMethodDescriptionstatic voidhideAnimationClass(OtsSimulationPanel panel, Class<? extends Locatable> locatableClass) Set a class to be shown in the animation to false.static voidSet all animation on, and create the toggles on the left hand side.static voidSet the most common animation on, and create the toggles on the left hand side.static voidSet all animation on, and create the toggles on the left hand side.static voidSet the most common animation on, and create the toggles on the left hand side.static voidshowAnimationClass(OtsSimulationPanel panel, Class<? extends Locatable> locatableClass) Set a class to be shown in the animation to true.static voidSet all animation on, and create the toggles on the left hand side.static voidSet the most common animation on, and create the toggles on the left hand side.
-
Method Details
-
setTextAnimationTogglesFull
Set all animation on, and create the toggles on the left hand side.- Parameters:
panel- simulation panel
-
setTextAnimationTogglesStandard
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel- the simulation panel
-
setIconAnimationTogglesFull
Set all animation on, and create the toggles on the left hand side.- Parameters:
panel- the simulation panel
-
setIconAnimationTogglesStandard
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 panellocatableClass- 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 panellocatableClass- the class for which the animation has to be hidden
-
showAnimationFull
Set all animation on, and create the toggles on the left hand side.- Parameters:
panel- the simulation panel
-
showAnimationStandard
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel- the simulation panel
-