return consumed;
}
private void setSelectedColor(int x, int y) {
ColorChooser colorChooser = (ColorChooser)TerraColorChooserSkin.this.getComponent();
int width = getWidth();
int height = getHeight();
float hue = hueChooser.getHue();
float saturation = 1f - (Math.min(Math.max(y, 0), height - 1) / (float)height);
float value = Math.min(Math.max(x, 0), width - 1) / (float)width;
saturationValueChooser.setSaturation(saturation);
saturationValueChooser.setValue(value);
updating = true;
try {
colorChooser.setSelectedColor(Color.getHSBColor(hue, saturation, value));
} finally {
updating = false;
}
}