Animation: onStart method

Sebastian Rheinnecker sebastian.rheinnecker at
Fri May 10 00:09:55 PDT 2013


is there something like an onStart property in Animation, just like 
onFinished? Currently, if I want to do some stuff prior to executing a 
Transition, for example, I have to do something like

void playTranisition(){

Where as

transition.onStartPropery().set(new EventHandler<ActionEvent>() {
       public void handle(ActionEvent event) {

would be far more convenient, since I could use this together with 
SequentialTransition and ParallelTransition and the like. Currently, I 
have to set a Handler on the onFinishedProperty of the preceding 
Transition (which blows up the code and leads to complicated adding and 
removing the listeners).
Or am I missing something here?

Kind regards,


Sebastian Rheinnecker
phone: +49 7071 9709050
fax: +49 7071 9709051

yWorks GmbH
Vor dem Kreuzberg 28
72070 Tuebingen
Managing Directors: Sebastian Müller, Michael Pfahler
Commercial Registry: Stuttgart, Germany, HRB 382340

More information about the openjfx-dev mailing list