What the Duration of negative Infinity mean?

Martin Sladecek martin.sladecek at oracle.com
Thu Jan 31 08:11:22 PST 2013

On 01/31/2013 04:56 PM, Richard Bair wrote:
> I was wondering that as well. My hunch is that being able to have negative durations would be useful when creating a duration using math methods on the Duration (add / subtract / etc). I could also imagine somebody using a Duration where the negative value means to go backwards vs. forwards or something.
We currently have negative rates for animations going backwards. Having 
also negative Durations might just complicate the stuff.
> How does the animation code handle negative duration values?
It doesn't handle negative values at all. All code in animations expects 
the duration to be positive.


More information about the openjfx-dev mailing list