I feel like I am missing something obvious regarding applying multiple effects to a node.
For example, if I wanted to apply a drop shadow and a reflection to a circle here is what I have been doing:
Reflection reflection = new Reflection( );
SGEffect sgReflection = new SGEffect( );
sgReflection.setEffect( reflection );
DropShadow dropShadow = new DropShadow( );
SGEffect sgShadow = new SGEffect( );
sgShadow.setEffect( dropShadow );
sgReflection.setChild( sgShadow );
sgShadow.setChild( myCircleHere );
This does work, but ideally, I would like to just add multiple effects to a node, a la:
FXShape shape = new FXShape();
Or, possibly passing in an effect and an effect index / sequence (or something like that). I'm sure there is a good reason why it does not work like this, but if anyone has any suggestions on a better way to implement multiple effects please let me know.
Thanks in advance,