code: public void onBarSelected(int y) {
  
          switch (m_colorMode) {
              case CmsSliderBar.HUE:
                  m_hue = 360 - percentOf(y, 360);
                  m_tbHue.setText(Integer.toString(m_hue));
                  onChange(m_tbHue);
                  break;
              case CmsSliderBar.SATURATIN:
                  m_saturation = 100 - percentOf(y, 100);
                  m_tbSaturation.setText(Integer.toString(m_saturation));
                  onChange(m_tbSaturation);
                  break;
              case CmsSliderBar.BRIGHTNESS:
                  m_brightness = 100 - percentOf(y, 100);
                  m_tbBrightness.setText(Integer.toString(m_brightness));
                  onChange(m_tbBrightness);
                  break;
              case CmsSliderBar.RED:
                  m_red = 255 - y;
                  m_tbRed.setText(Integer.toString(m_red));
                  onChange(m_tbRed);
                  break;
              case CmsSliderBar.GREEN:
                  m_green = 255 - y;
                  m_tbGreen.setText(Integer.toString(m_green));
                  onChange(m_tbGreen);
                  break;
              case CmsSliderBar.BLUE:
                  m_blue = 255 - y;
                  m_tbBlue.setText(Integer.toString(m_blue));
                  onChange(m_tbBlue);
                  break;
              default:
                  break;
  
          }
      }
docs: Fires whenever the user generates picking events along the color picker bar.<p>
  @param y the distance along the y-axis