Package docking.util

Class AnimationUtils


  • public class AnimationUtils
    extends java.lang.Object
    • Method Detail

      • isAnimationEnabled

        public static boolean isAnimationEnabled()
        Returns true if animation is enabled; false if animation has been disable, such as by a user option
        Returns:
        true if enabled
      • setAnimationEnabled

        public static void setAnimationEnabled​(boolean enabled)
        Enables animation for all tools in the Ghidra universe.
        Parameters:
        enabled - true if animations should be used
      • focusComponent

        public static org.jdesktop.animation.timing.Animator focusComponent​(java.awt.Component component)
        Focuses the current component by graying out all other components but the given one and bringing that component to the middle of the screen.
        Parameters:
        component - The component to focus
        Returns:
        the new animator
      • transitionUserFocusToComponent

        public static org.jdesktop.animation.timing.Animator transitionUserFocusToComponent​(java.awt.Component activeComponent,
                                                                                            java.awt.Component toFocusComponent)
      • transitionFromComponentToComponent

        public static org.jdesktop.animation.timing.Animator transitionFromComponentToComponent​(java.awt.Component fromComponent,
                                                                                                java.awt.Component toComponent)
      • createPaintingAnimator

        public static org.jdesktop.animation.timing.Animator createPaintingAnimator​(java.awt.Component window,
                                                                                    AnimationPainter painter)
      • shakeComponent

        public static org.jdesktop.animation.timing.Animator shakeComponent​(java.awt.Component component)
      • rotateComponent

        public static org.jdesktop.animation.timing.Animator rotateComponent​(java.awt.Component component)
      • pulseComponent

        public static org.jdesktop.animation.timing.Animator pulseComponent​(java.awt.Component component)
      • pulseComponent

        public static org.jdesktop.animation.timing.Animator pulseComponent​(java.awt.Component component,
                                                                            int pulseCount)
      • pulseAndShakeComponent

        public static org.jdesktop.animation.timing.Animator pulseAndShakeComponent​(java.awt.Component component)
      • showTheDragonOverComponent

        public static org.jdesktop.animation.timing.Animator showTheDragonOverComponent​(java.awt.Component component)
      • executeSwingAnimationCallback

        public static org.jdesktop.animation.timing.Animator executeSwingAnimationCallback​(SwingAnimationCallback callback)
      • getGlassPane

        public static GGlassPane getGlassPane​(java.awt.Component c)
        Returns the GGlassPane for the given component
        Parameters:
        c - the component
        Returns:
        the glass pane