public void setStyle ( final JRebirthEventType eventType ) { switch ( eventType ) { case CREATE_APPLICATION : this . circle . setFill ( BallColors . APPLICATION . get ( ) ) ; this . label . setText ( "App" ) ; break ; case CREATE_NOTIFIER : this . circle . setFill ( BallColors . NOTIFIER . get ( ) ) ; this . label . setText ( "N" ) ; break ; case CREATE_GLOBAL_FACADE : this . circle . setFill ( BallColors . GLOBAL_FACADE . get ( ) ) ; this . label . setText ( "GF" ) ; break ; case CREATE_UI_FACADE : this . circle . setFill ( BallColors . UI_FACADE . get ( ) ) ; this . label . setText ( "UF" ) ; break ; case CREATE_SERVICE_FACADE : this . circle . setFill ( BallColors . SERVICE_FACADE . get ( ) ) ; this . label . setText ( "SF" ) ; break ; case CREATE_COMMAND_FACADE : this . circle . setFill ( BallColors . COMMAND_FACADE . get ( ) ) ; this . label . setText ( "CF" ) ; break ; case CREATE_SERVICE : this . circle . setFill ( BallColors . SERVICE . get ( ) ) ; this . label . setText ( "S" ) ; break ; case CREATE_MODEL : this . circle . setFill ( BallColors . MODEL . get ( ) ) ; this . label . setText ( "M" ) ; break ; case CREATE_COMMAND : this . circle . setFill ( BallColors . COMMAND . get ( ) ) ; this . label . setText ( "C" ) ; break ; case CREATE_VIEW : this . circle . setFill ( BallColors . VIEW . get ( ) ) ; this . label . setText ( "V" ) ; break ; default : // Nothing to colorize } }
Define the ball style .