Animation: onStart method

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


Hello,

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(){
   doStuff();
   doSomeOtherStuff();
   transition.play();
}

Where as

transition.onStartPropery().set(new EventHandler<ActionEvent>() {
       @Override
       public void handle(ActionEvent event) {
         doStuff();
         doSomeOtherStuff();
       }
});

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

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

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



More information about the openjfx-dev mailing list