Package org.opentrafficsim.swing.gui
Class AnimationToggles
java.lang.Object
org.opentrafficsim.swing.gui.AnimationToggles
public final class AnimationToggles
extends java.lang.Object
Set the default animation toggles for the animation panel.
Copyright (c) 2013-2020 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 Type Method Description static voidhideAnimationClass(OTSAnimationPanel panel, java.lang.Class<? extends Locatable> locatableClass)Set a class to be shown in the animation to false.static voidsetIconAnimationTogglesFull(OTSAnimationPanel panel)Set all animation on, and create the toggles on the left hand side.static voidsetIconAnimationTogglesStandard(OTSAnimationPanel panel)Set the most common animation on, and create the toggles on the left hand side.static voidsetTextAnimationTogglesFull(OTSAnimationPanel panel)Set all animation on, and create the toggles on the left hand side.static voidsetTextAnimationTogglesStandard(OTSAnimationPanel panel)Set the most common animation on, and create the toggles on the left hand side.static voidshowAnimationClass(OTSAnimationPanel panel, java.lang.Class<? extends Locatable> locatableClass)Set a class to be shown in the animation to true.static voidshowAnimationFull(OTSAnimationPanel panel)Set all animation on, and create the toggles on the left hand side.static voidshowAnimationStandard(OTSAnimationPanel panel)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 final void showAnimationClass(OTSAnimationPanel panel, java.lang.Class<? extends 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 final void hideAnimationClass(OTSAnimationPanel panel, java.lang.Class<? extends 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.
-