Package org.opentrafficsim.web.animation
Class WebAnimationToggles
- java.lang.Object
-
- org.opentrafficsim.web.animation.WebAnimationToggles
-
public final class WebAnimationToggles extends Object
Set the default animation toggles for the HTML animation panel.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Dec 11, 2016
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
hideAnimationClass(HTMLAnimationPanel panel, Class<? extends Locatable> locatableClass)
Set a class to be shown in the animation to false.static void
setTextAnimationTogglesFull(HTMLAnimationPanel panel)
Set all commonly used animation on, and create the toggles on the left hand side.static void
setTextAnimationTogglesStandard(HTMLAnimationPanel panel)
Set the most common animation on, and create the toggles on the left hand side.static void
showAnimationClass(HTMLAnimationPanel panel, Class<? extends Locatable> locatableClass)
Set a class to be shown in the animation to true.static void
showAnimationFull(HTMLAnimationPanel panel)
Set all commonly used animation on, and create the toggles on the left hand side.static void
showAnimationStandard(HTMLAnimationPanel panel)
Set the most common animation on, and create the toggles on the left hand side.
-
-
-
Method Detail
-
setTextAnimationTogglesFull
public static void setTextAnimationTogglesFull(HTMLAnimationPanel panel)
Set all commonly used animation on, and create the toggles on the left hand side.- Parameters:
panel
- HTMLAnimationPanel; the Animation panel to add the toggle to.
-
setTextAnimationTogglesStandard
public static void setTextAnimationTogglesStandard(HTMLAnimationPanel panel)
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel
- HTMLAnimationPanel; the Animation panel to add the toggle to.
-
showAnimationClass
public static final void showAnimationClass(HTMLAnimationPanel panel, Class<? extends Locatable> locatableClass)
Set a class to be shown in the animation to true.- Parameters:
panel
- OTSAnimationPanel; the HTMLAnimationPanel 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(HTMLAnimationPanel panel, Class<? extends Locatable> locatableClass)
Set a class to be shown in the animation to false.- Parameters:
panel
- HTMLAnimationPanel; the HTMLAnimationPanel 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
public static void showAnimationFull(HTMLAnimationPanel panel)
Set all commonly used animation on, and create the toggles on the left hand side.- Parameters:
panel
- HTMLAnimationPanel; the HTMLAnimationPanel where classes are shown or not.
-
showAnimationStandard
public static void showAnimationStandard(HTMLAnimationPanel panel)
Set the most common animation on, and create the toggles on the left hand side.- Parameters:
panel
- OTSAnimationPanel; the WrappableAnimation.
-
-