model.setCurveCoefficient(newValue.doubleValue());
    public void propertyChange(PropertyChangeEvent evt)    {        String name = evt.getPropertyName();        if (name.equals(ImViewer.Z_SELECTED_PROPERTY) ||             name.equals(ImViewer.T_SELECTED_PROPERTY)) {            //retrieve plane statistics for specific channel.        } else if (name.equals(            CodomainMapContextDialog.UPDATE_MAP_CONTEXT_PROPERTY)) {            CodomainMapContext ctx = (CodomainMapContext)  evt.getNewValue();            model.updateCodomainMap(ctx);        } else if (name.equals(ControlPane.FAMILY_PROPERTY)) {            String oldValue = (String) evt.getOldValue();            String newValue = (String) evt.getNewValue();            if (newValue.equals(oldValue)) return;            view.onCurveChange();            model.setFamily(newValue);        } else if (name.equals(ControlPane.GAMMA_PROPERTY)) {            Double oldValue = (Double) evt.getOldValue();            Double newValue = (Double) evt.getNewValue();            if (newValue.equals(oldValue)) return;            view.onCurveChange();            model.setCurveCoefficient(newValue.doubleValue());        } else if (name.equals(ControlPane.BIT_RESOLUTION_PROPERTY)) {            Integer oldValue = (Integer) evt.getOldValue();            Integer newValue = (Integer) evt.getNewValue();            if (newValue.equals(oldValue)) return;            model.setBitResolution(newValue.intValue());        } else if (name.equals(ChannelToggleButton.CHANNEL_PICKED_PROPERTY)) {            int v = ((Integer) evt.getNewValue()).intValue();            model.setSelectedChannel(v);        } else if (name.equals(ImViewer.CHANNEL_ACTIVE_PROPERTY)) {            //int v = ((Integer) evt.getNewValue()).intValue();            //model.setSelectedChannel(v);        } else if (name.equals(ImViewer.ICONIFIED_PROPERTY)) {            if (((Boolean) evt.getNewValue()).booleanValue()) view.iconify();            //else view.deIconify();        } else if (name.equals(Renderer.INPUT_INTERVAL_PROPERTY)) {            view.setInputInterval();        } else if (name.equals(ImViewer.CHANNEL_COLOR_CHANGE_PROPERTY)) {            // DO SOME UPDATES ON THE CHANNEL TOGGLE BUTTON MODEL.    	  	  int newValue =  ((Integer) evt.getNewValue()).intValue();      	  model.setChannelButtonColor(newValue);        } else if (name.equals(ImViewer.COLOR_MODEL_CHANGE_PROPERTY)) {            // DO SOME UPDATES ON THE CHANNEL TOGGLE BUTTON MODEL.        	  model.setColorModelChanged();        }    }