Class AnimationToggles


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

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

    $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Dec 11, 2016
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • setTextAnimationTogglesFull

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

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

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

        public static void setIconAnimationTogglesStandard​(OTSAnimationPanel panel)
        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 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 off
        locatableClass - Class<? extends Locatable>; the class for which the animation has to be shown.
      • hideAnimationClass

        public static void hideAnimationClass​(OTSAnimationPanel panel,
                                              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 off
        locatableClass - Class<? extends Locatable>; the class for which the animation has to be shown.
      • showAnimationFull

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

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