Package org.opentrafficsim.swing.gui
Class AnimationToggles
java.lang.Object
org.opentrafficsim.swing.gui.AnimationToggles
Set the default animation toggles for the animation panel.
Copyright (c) 2013-2024 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 void
hideAnimationClass
(OtsAnimationPanel panel, Class<? extends nl.tudelft.simulation.dsol.animation.Locatable> locatableClass) Set a class to be shown in the animation to false.static void
Set all animation on, and create the toggles on the left hand side.static void
Set the most common animation on, and create the toggles on the left hand side.static void
Set all animation on, and create the toggles on the left hand side.static void
Set the most common animation on, and create the toggles on the left hand side.static void
showAnimationClass
(OtsAnimationPanel panel, Class<? extends nl.tudelft.simulation.dsol.animation.Locatable> locatableClass) Set a class to be shown in the animation to true.static void
Set all animation on, and create the toggles on the left hand side.static void
Set 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
- OtsAnimationPanel; the WrappableAnimation.
-
setTextAnimationTogglesStandard
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel
- OtsAnimationPanel; the WrappableAnimation.
-
setIconAnimationTogglesFull
Set all animation on, and create the toggles on the left hand side.- Parameters:
panel
- OtsAnimationPanel; the WrappableAnimation.
-
setIconAnimationTogglesStandard
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel
- OtsAnimationPanel; the WrappableAnimation.
-
showAnimationClass
public static void showAnimationClass(OtsAnimationPanel panel, Class<? extends nl.tudelft.simulation.dsol.animation.Locatable> locatableClass) Set a class to be shown in the animation to true.- Parameters:
panel
- OtsAnimationPanel; the OtsAnimationPanel where the animation of a class has to be switched offlocatableClass
- Class<? extends Locatable>; the class for which the animation has to be shown.
-
hideAnimationClass
public static void hideAnimationClass(OtsAnimationPanel panel, Class<? extends nl.tudelft.simulation.dsol.animation.Locatable> locatableClass) Set a class to be shown in the animation to false.- Parameters:
panel
- OtsAnimationPanel; the OtsAnimationPanel where the animation of a class has to be switched offlocatableClass
- Class<? extends Locatable>; the class for which the animation has to be shown.
-
showAnimationFull
Set all animation on, and create the toggles on the left hand side.- Parameters:
panel
- OtsAnimationPanel; the WrappableAnimation.
-
showAnimationStandard
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel
- OtsAnimationPanel; the WrappableAnimation.
-