RFR: 8372203: Piecewise linear easing function [v4]
Michael Strauß
mstrauss at openjdk.org
Wed Nov 26 22:29:03 UTC 2025
On Wed, 26 Nov 2025 21:57:22 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>>
>> rename LINEAR() to ofLinear()
>
> modules/javafx.graphics/src/main/java/javafx/animation/Interpolator.java line 107:
>
>> 105: * @param controlPoints the control points
>> 106: * @throws NullPointerException if {@code controlPoints} is {@code null}
>> 107: * @throws IllegalArgumentException if {@code controlPoints} is empty
>
> Should it throw IAE if length < 2?
The CSS syntax is specified as `linear( [ <number> && <percentage>{0,2} ]# )`, where `#` means "one or more". So a single point is allowed.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1977#discussion_r2566634521
More information about the openjfx-dev
mailing list