Package ca.corbett.extras.image.animation
package ca.corbett.extras.image.animation
This package contains animation classes and other fun visual effects that you can
drop into your application:
AnimatedTextRenderer- types out text at a configurable rate with configurable color and font options.BlurLayerUI- apply a blur effect to a JPanel.FadeLayerUI- apply a fade-in/fade-out effect to a JPanel.SnowLayerUI- apply a "falling snow" effect to a JPanel.
The remaining classes (ImageAnimator and ImageScroller) are intended more for full-screen applications than for Java Swing applications. For example usage, refer to the ext-mp-scenery extension for the MusicPlayer application, or refer to the swing-extras-book documentation.
The built-in demo application contains example usages of these classes!
- Since:
- swing-extras 2.3
- Author:
- scorbo2 with claude.ai
-
ClassDescriptionAnimates a text display, such that a given text string will be slowly "printed" out character by character with configurable styling and with a configurable speed.Helper class to store cursor positionControls the total duration of an animation.Controls the speed of animation frames, in terms of the delay between frames.A custom LayerUI that can apply a blur effect to a JPanel and display an optional text message over it.Blur intensity presets controlling the blur kernel size.This is a LayerUI implementation that can be used to "fade" a JPanel in and out by overlaying a colored translucent layer that animates its opacity.Smoothly animates an image from a source location to a destination location, with optional acceleration and deceleration parameters on either end of the image movement.Displays an oversized image and slowly scrolls it either horizontally back-and-forth (for landscape images) or vertically up-and-down (for portrait images).Determines the extent to which we slow down as we approach a scroll limit, and also how quickly we speed up as we move away from a scroll limit.Determines pixels per frame of animation movement.A custom LayerUI that can apply a fun "falling snow" effect to a JPanel by drawing little animated snowflakes over it.Controls the likelihood of a new snowflake appearing each frame.Controls the "wind", or the amount of horizontal drift of the snowflakes and their direction.