Package docking.util
Class AnimationUtils
java.lang.Object
docking.util.AnimationUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jdesktop.animation.timing.AnimatorcreatePaintingAnimator(Component component, AnimationPainter painter) static org.jdesktop.animation.timing.Animatorstatic org.jdesktop.animation.timing.AnimatorfocusComponent(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.static GGlassPaneReturns theGGlassPanefor the given componentstatic booleanReturns true if animation is enabled; false if animation has been disable, such as by a user optionstatic org.jdesktop.animation.timing.AnimatorpulseAndShakeComponent(Component component) static org.jdesktop.animation.timing.AnimatorpulseComponent(Component component) static org.jdesktop.animation.timing.AnimatorpulseComponent(Component component, int pulseCount) static org.jdesktop.animation.timing.AnimatorrotateComponent(Component component) static voidsetAnimationEnabled(boolean enabled) Enables animation for all tools in the Ghidra universe.static org.jdesktop.animation.timing.AnimatorshakeComponent(Component component) static org.jdesktop.animation.timing.AnimatorshowTheDragonOverComponent(Component component) static org.jdesktop.animation.timing.AnimatortransitionFromComponentToComponent(Component fromComponent, Component toComponent) static org.jdesktop.animation.timing.AnimatortransitionUserFocusToComponent(Component activeComponent, Component toFocusComponent)
-
Method Details
-
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
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
-
transitionFromComponentToComponent
-
createPaintingAnimator
public static org.jdesktop.animation.timing.Animator createPaintingAnimator(Component component, AnimationPainter painter) -
shakeComponent
-
rotateComponent
-
pulseComponent
-
pulseComponent
public static org.jdesktop.animation.timing.Animator pulseComponent(Component component, int pulseCount) -
pulseAndShakeComponent
-
showTheDragonOverComponent
public static org.jdesktop.animation.timing.Animator showTheDragonOverComponent(Component component) -
executeSwingAnimationCallback
public static org.jdesktop.animation.timing.Animator executeSwingAnimationCallback(SwingAnimationCallback callback) -
getGlassPane
Returns theGGlassPanefor the given component- Parameters:
c- the component- Returns:
- the glass pane
-