firePropertyChange(CHANNEL_COLOR_CHANGE_PROPERTY, index-1, index);
firePropertyChange(CHANNEL_COLOR_CHANGE_PROPERTY, new Integer(index-1), new Integer(index));
    public void setChannelColor(int index, Color c)    {        switch (model.getState()) {            case NEW:            case LOADING_RENDERING_CONTROL:            case DISCARDED:                throw new IllegalStateException(                "This method can't be invoked in the DISCARDED, NEW or" +                "LOADING_RENDERING_CONTROL state.");        }        model.setChannelColor(index, c);        view.setChannelColor(index, c);        firePropertyChange(CHANNEL_COLOR_CHANGE_PROPERTY, index-1, index);        if (model.isChannelActive(index)) renderXYPlane();    }