String chosen = (String)((JComboBox)e.getSource()).getSelectedItem(); if(chosen != null) { if( _snaPluginRef != null) {  _snaPluginRef.indecize(); _snaPluginRef.calculate(chosen);    if(!chosen.equals(LayoutPlugin.STR_SORT_ALPHABETICAL)) { _snaPluginRef.resizeNodes(chosen); } else { _pluginRef.getRenderBox().resizeNodes(1); }    layout.setActiveMeasure(chosen);  _pluginRef.setLayout(LayoutPlugin.LAYOUT_Circle, true);  } }
pluginRef.fitGraphToWindow();
	            public void actionPerformed(ActionEvent e) {	                String chosen = (String)((JComboBox)e.getSource()).getSelectedItem();	                if(chosen != null) {                        if( _snaPluginRef != null) {    		                // -- calculate the chosen measure --                            _snaPluginRef.indecize();                            _snaPluginRef.calculate(chosen);                            // -- if resize is checked, handle --                            //if(resizeBox.isSelected()) {                                if(!chosen.equals(LayoutPlugin.STR_SORT_ALPHABETICAL)) {                                    _snaPluginRef.resizeNodes(chosen);                                }                                else {                                    _pluginRef.getRenderBox().resizeNodes(1);                                }                            //}                            // -- tell the layout which datum to order by --                            layout.setActiveMeasure(chosen);                            _pluginRef.setLayout(LayoutPlugin.LAYOUT_Circle, true);                            //optionList.setSelectedItem(chosen);                        }	                }	            }