Class ThemeTransitionManager
java.lang.Object
com.arbergashi.charts.util.ThemeTransitionManager
Smoothly interpolates between two chart themes using cached colors.
Interpolation uses ColorRegistry.interpolate(Color, Color, float) so
animation frames are served from the flyweight cache without per-frame allocations.
-
Constructor Summary
ConstructorsConstructorDescriptionThemeTransitionManager(ChartTheme start, ChartTheme target, int durationMs, Consumer<ChartTheme> apply) -
Method Summary
Modifier and TypeMethodDescriptionvoidstart()static ThemeTransitionManagerstart(ChartTheme start, ChartTheme target, int durationMs, Consumer<ChartTheme> apply) voidstop()
-
Constructor Details
-
ThemeTransitionManager
public ThemeTransitionManager(ChartTheme start, ChartTheme target, int durationMs, Consumer<ChartTheme> apply)
-
-
Method Details
-
start
public static ThemeTransitionManager start(ChartTheme start, ChartTheme target, int durationMs, Consumer<ChartTheme> apply) -
start
public void start() -
stop
public void stop()
-