Package com.lightcrafts.model

Examples of com.lightcrafts.model.SliderConfig


        super(rendering, type);
        colorInputOnly = true;

        this.addSliderKey(DENOISE);
        DecimalFormat format = new DecimalFormat("0");
        this.setSliderConfig(DENOISE, new SliderConfig(1, 10, denoiseLevel, 1, false, format));
    }
View Full Code Here


        addSliderKey(SOURCE);
        addSliderKey(TINT);

        DecimalFormat format = new DecimalFormat("0.00");

        setSliderConfig(EXPOSURE, new SliderConfig(-4, 4, exposure, .01, false, format));
        setSliderConfig(SOURCE, new SliderConfig(1000, 40000, temperature, 10, true, new DecimalFormat("0")));
        setSliderConfig(TINT, new SliderConfig(-20, 20, tint, 0.1, false, new DecimalFormat("0.0")));
        setSliderConfig(COLOR_NOISE, new SliderConfig(0, 20, color_noise, .01, false, format));
    }
View Full Code Here

        super(rendering, type);
        addSliderKey("Radius");

        DecimalFormat format = new DecimalFormat("0.0");

        setSliderConfig("Radius", new SliderConfig(0.1, 500, radius, step, true, format));
    }
View Full Code Here

    void removeSliderMouseListener(MouseListener listener) {
        slider.removeMouseListener(listener);
    }

    public static void main(String[] args) {
        SliderConfig config = new SliderConfig(
            0., 1., .5, .01, false, new DecimalFormat()
        );
        final GenericSlider slider = new GenericSlider("name", config);
        slider.addChangeListener(
            new ChangeListener() {
View Full Code Here

        if (type == typeV2)
            addSliderKey(HUE);

        DecimalFormat format = new DecimalFormat("0");

        setSliderConfig(HUE, new SliderConfig(-180, 180, hue, 1, false, format));
        setSliderConfig(SATURATION, new SliderConfig(-100, 100, saturation, 1, false, format));
        if (type != typeV1)
            setSliderConfig(VIBRANCE, new SliderConfig(-100, 100, vibrance, 1, false, format));
        if (type != typeV2)
            setSliderConfig(LUMINOSITY, new SliderConfig(-100, 100, intensity, 1, false, format));
    }
View Full Code Here

        super(rendering, type);

        DecimalFormat format = new DecimalFormat("0.00");

        addSliderKey(SHADOWS);
        setSliderConfig(SHADOWS, new SliderConfig(0, 10, shadows, .05, false, format));

        addSliderKey(HIGHLIGHTS);
        setSliderConfig(HIGHLIGHTS, new SliderConfig(0, 1, highlights, .05, false, format));

        addSliderKey(DETAIL);
        setSliderConfig(DETAIL, new SliderConfig(0, 10, detail, .05, false, format));

        addSliderKey(DEPTH);
        setSliderConfig(DEPTH, new SliderConfig(8, 64, depth, .05, false, format));
       
        addSliderKey(FUZZ);
        setSliderConfig(FUZZ, new SliderConfig(0.1, 1, fuzz, .05, false, format));
    }
View Full Code Here

        return type;
    }

    void addSliderKey(String key) {
        sliderKeys.add(key);
        sliderConfigs.put(key, new SliderConfig());
    }
View Full Code Here

    public List<String> getChoiceValues(String key) {
        return new ArrayList<String>(choiceValues.get(key));
    }

    public double roundValue(String key, double value) {
        SliderConfig sliderConfig = getSliderConfig(key);
        double increment = sliderConfig.getIncrement();
        return Math.round(value / increment) * increment;
    }
View Full Code Here

        super(rendering, type);
        colorInputOnly = true;

        DecimalFormat format = new DecimalFormat("0.00");
        addSliderKey(MIDPOINT);
        setSliderConfig(MIDPOINT, new SliderConfig(0.01, 1, midpoint, 0.01, true, format));
    }
View Full Code Here

        super(rendering, type);
        addSliderKey("Tolerance");

        DecimalFormat format = new DecimalFormat("0.00");

        setSliderConfig("Tolerance", new SliderConfig(0.5, 1.5, tolerance, step, false, format));
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.model.SliderConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.