protected void fadeIn(double frac, Context context) { if (frac == 0d) { group.setOpacity(0d); animateDrawText(1d, context); animateComputeBox(1d, context); animateDrawBox(1d, context); } group.setOpacity(frac); }
private void revealScalingGroup() { assert scalingGroup.isVisible() == false; scalingGroup.setVisible(true); scalingGroup.setOpacity(0.0); FadeTransition showHost = new FadeTransition(Duration.millis(300), scalingGroup); showHost.setFromValue(0.0); showHost.setToValue(1.0); showHost.play(); }