title: javafx 8 chaining effects
body: <p>Chaining two effects in JavaFX is easy with .setInput()</p>
  
  <pre><code>if (isDropShadowEnabled)
      innerShadow.setInput(dropShadow);
  content.setEffect(innerShadow);
  </code></pre>
  
  <p>But how do I chain multiple effects when any one of those effects may not be enabled?</p>
  
  <p>Say a third effect is Bloom. So I want a Dropshadow, InnerShadow and Bloom, but at other times just a DropShadow and Bloom and no InnerShadow. I'm trying to avoid lots of 'if's and I've been looking for something along the lines of effect.getChildren().add('lots of effects'). But nothing has jumped out after hours of Googling.</p>