private void defineProgressBars ( UIDefaults d ) { // Copied from nimbus //Initialize ProgressBar d . put ( "ProgressBar.contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "ProgressBar.States" , "Enabled,Disabled,Indeterminate,Finished" ) ; d . put ( "ProgressBar.tileWhenIndeterminate" , Boolean . TRUE ) ; d . put ( "ProgressBar.paintOutsideClip" , Boolean . TRUE ) ; d . put ( "ProgressBar.rotateText" , Boolean . TRUE ) ; d . put ( "ProgressBar.vertictalSize" , new DimensionUIResource ( 19 , 150 ) ) ; d . put ( "ProgressBar.horizontalSize" , new DimensionUIResource ( 150 , 19 ) ) ; addColor ( d , "ProgressBar[Disabled].textForeground" , "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 ) ; d . put ( "ProgressBar[Disabled+Indeterminate].progressPadding" , new Integer ( 3 ) ) ; // Seaglass starts below. d . put ( "progressBarTrackInterior" , Color . WHITE ) ; d . put ( "progressBarTrackBase" , new Color ( 0x4076bf ) ) ; d . put ( "ProgressBar.Indeterminate" , new ProgressBarIndeterminateState ( ) ) ; d . put ( "ProgressBar.Finished" , new ProgressBarFinishedState ( ) ) ; String p = "ProgressBar" ; String c = PAINTER_PREFIX + "ProgressBarPainter" ; d . put ( p + ".cycleTime" , 500 ) ; d . put ( p + ".progressPadding" , new Integer ( 3 ) ) ; d . put ( p + ".trackThickness" , new Integer ( 19 ) ) ; d . put ( p + ".tileWidth" , new Integer ( 24 ) ) ; d . put ( p + ".backgroundFillColor" , Color . WHITE ) ; d . put ( p + ".font" , new DerivedFont ( "defaultFont" , 0.769f , null , null ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Enabled+Finished].foregroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . FOREGROUND_ENABLED_FINISHED ) ) ; d . put ( p + "[Enabled+Indeterminate].foregroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . FOREGROUND_ENABLED_INDETERMINATE ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[Disabled+Finished].foregroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . FOREGROUND_DISABLED_FINISHED ) ) ; d . put ( p + "[Disabled+Indeterminate].foregroundPainter" , new LazyPainter ( c , ProgressBarPainter . Which . FOREGROUND_DISABLED_INDETERMINATE ) ) ; }
Initialize the progress bar settings .