@@ -18,7 +18,7 @@ import Image from '../../../../scenery/js/nodes/Image.js';
18
18
import LayoutBox from '../../../../scenery/js/nodes/LayoutBox.js' ;
19
19
import Node from '../../../../scenery/js/nodes/Node.js' ;
20
20
import Text from '../../../../scenery/js/nodes/Text.js' ;
21
- import RadioButtonGroup from '../../../../sun/js/buttons/RadioButtonGroup .js' ;
21
+ import RectangularRadioButtonGroup from '../../../../sun/js/buttons/RectangularRadioButtonGroup .js' ;
22
22
import multiSelectionSoundPlayerFactory from '../../../../tambo/js/multiSelectionSoundPlayerFactory.js' ;
23
23
import Tandem from '../../../../tandem/js/Tandem.js' ;
24
24
import flashlight2Image from '../../../mipmaps/flashlight_png.js' ;
@@ -165,7 +165,7 @@ function QuadEmissionFrequencyControlPanel( photonAbsorptionModel, tandem ) {
165
165
) ;
166
166
} ) ;
167
167
168
- const radioButtons = new RadioButtonGroup ( photonAbsorptionModel . photonWavelengthProperty , radioButtonContent , {
168
+ const radioButtonGroup = new RectangularRadioButtonGroup ( photonAbsorptionModel . photonWavelengthProperty , radioButtonContent , {
169
169
orientation : 'horizontal' ,
170
170
spacing : 15 ,
171
171
baseColor : 'black' ,
@@ -196,12 +196,12 @@ function QuadEmissionFrequencyControlPanel( photonAbsorptionModel, tandem ) {
196
196
}
197
197
198
198
// Set the positions of all components of the control panel.
199
- energyArrow . centerX = energyText . centerX = radioButtons . centerX ; // All have the same center x component.
200
- energyArrow . top = radioButtons . bottom + 15 ; // Arrow is below the buttons by an offset which is chosen empirically.
199
+ energyArrow . centerX = energyText . centerX = radioButtonGroup . centerX ; // All have the same center x component.
200
+ energyArrow . top = radioButtonGroup . bottom + 15 ; // Arrow is below the buttons by an offset which is chosen empirically.
201
201
energyText . top = energyArrow . bottom ;
202
202
203
203
// Add all components to the control panel.
204
- this . addChild ( radioButtons ) ;
204
+ this . addChild ( radioButtonGroup ) ;
205
205
this . addChild ( energyArrow ) ;
206
206
this . addChild ( energyText ) ;
207
207
0 commit comments