Add a setOnStarted method to the Animation class

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 7u6
    • Component/s: javafx

      I suggest adding a setOnStarted(EventHandler<ActionEvent> actionEvent) method to the Animation class.

      Usually you don't need that, because you can just do your stuff, when you call play() or playFromStart() on the Animation.
      But when you have several Animations within a SequentialTransition, this method can be useful, because you can't really tell, when it will get started.
      Of course you could as well use the setOnFinished method of the previous animation, but then you need to know the order of the sequentialTransition, which might not always be the case.

      Accordingly it *might* also be helpful if you had an event "setOnResumed", if you pause() an Animation and then play it again.
      Maybe even a "setOnPaused" event.

            Assignee:
            Michael Heinrichs (Inactive)
            Reporter:
            Christian Schudt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: