question: private static ImageView pickGraphic ( RestartableService startStoppable ) { final boolean running = startStoppable . isRunning ( ) ; final ImageView icon = running ? new ImageView ( stopImage ) : new ImageView ( startImage ) ; if ( ! running ) { final FadeTransition ft = new FadeTransition ( Duration . millis ( 750 ) , icon ) ; ft . setToValue ( 0.1 ) ; ft . setCycleCount ( Transition . INDEFINITE ) ; ft . setAutoReverse ( true ) ; ft . play ( ) ; } icon . setFitHeight ( DPIUtility . MINI_ICON_SIZE ) ; icon . setFitWidth ( DPIUtility . MINI_ICON_SIZE ) ; return icon ; }
target:  Gets the graphic that should be used for the button given the current source's state