Examples of SliderConfig


Examples of com.lightcrafts.model.SliderConfig

        addSliderKey(ORIGINAL);
        // addSliderKey(TARGET);

        DecimalFormat format = new DecimalFormat("0");

        setSliderConfig(ORIGINAL, new SliderConfig(2000, 50000, original, 10, true, format));
        // setSliderConfig(TARGET, new SliderConfig(1000, 20000, target, true, format));
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        DecimalFormat format = new DecimalFormat("0.0");

        if (type == typeV3) {
            this.addSliderKey(COLOR_NOISE);
            this.setSliderConfig(COLOR_NOISE, new SliderConfig(0, 20, chroma_domain, 1, false, format));

            this.addSliderKey(GRAIN_NOISE);
            this.setSliderConfig(GRAIN_NOISE, new SliderConfig(0, 20, luma_range, 1, false, format));
        } else {
            this.addSliderKey(COLOR_RADIUS);
            this.setSliderConfig(COLOR_RADIUS, new SliderConfig(0, 10, chroma_domain, 1, false, format));

            this.addSliderKey(COLOR_INTENSITY);
            this.setSliderConfig(COLOR_INTENSITY, new SliderConfig(0, 20, chroma_range, 1, false, format));

            if (type == typeV1) {
                this.addSliderKey(GRAIN_RADIUS);
                this.setSliderConfig(GRAIN_RADIUS, new SliderConfig(0, 10, luma_domain, 0.1, false, format));
            }

            this.addSliderKey(GRAIN_INTENSITY);
            this.setSliderConfig(GRAIN_INTENSITY, new SliderConfig(0, 10, luma_range, 0.1, false, format));
        }
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        List sliderKeys = op.getSliderKeys();
        for (Iterator i=sliderKeys.iterator(); i.hasNext(); ) {
            final String key = (String) i.next();
            final String userKey = getUserPresentableKey(key);
            final SliderConfig config = op.getSliderConfig(key);
            final GenericSlider slider = new GenericSlider(userKey, config);
            slider.addChangeListener(
                new ChangeListener() {
                    public void stateChanged(ChangeEvent event) {
                        double value = slider.getConfiguredValue();
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

            addSliderKey(Strenght);

        DecimalFormat format = new DecimalFormat("0.00");

        if (type != typeV2)
            setSliderConfig(Strenght, new SliderConfig(0, 10, strenght, .5, false, format));
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        addSliderKey(RED);
        addSliderKey(GREEN);
        addSliderKey(BLUE);

        setSliderConfig(RED, new SliderConfig(-10, 10, red, 0.1, false, format));
        setSliderConfig(GREEN, new SliderConfig(-10, 10, green, 0.1, false, format));
        setSliderConfig(BLUE, new SliderConfig(-10, 10, blue, 0.1, false, format));

        format = new DecimalFormat("0.00");

        addSliderKey(MIDPOINT);

        setSliderConfig(MIDPOINT, new SliderConfig(0, 1, midpoint, 0.01, false, format));
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        addSliderKey(Blue);

        // Fabio: pick the right number format
        DecimalFormat format = new DecimalFormat("0.00");

        setSliderConfig(Red, new SliderConfig(-2, 2, red, .01, false, format));
        setSliderConfig(Green, new SliderConfig(-2, 2, green, .01, false, format));
        setSliderConfig(Blue, new SliderConfig(-2, 2, blue, .01, false, format));
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        addSliderKey("Gain");
        addSliderKey("Radius");

        DecimalFormat format = new DecimalFormat("0.000");

        setSliderConfig("Gain", new SliderConfig(0.01, 1, gain, .001, true, format));
        setSliderConfig("Radius", new SliderConfig(0.2, 5, radius, .001, true, format));
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        addSliderKey(AMOUNT);
        addSliderKey(RADIUS);
        if (type != typeV1)
            addSliderKey(THRESHOLD);

        setSliderConfig(AMOUNT, new SliderConfig(1, 500, amount, 1, true, new DecimalFormat("0")));
        setSliderConfig(RADIUS, new SliderConfig(0.1, 500, radius, .1, true, new DecimalFormat("0.0")));
        if (type != typeV1)
            setSliderConfig(THRESHOLD, new SliderConfig(0, 100, threshold, 1, false, new DecimalFormat("0")));

        if (type == typeV2) {
            java.util.List cks = new LinkedList();
            cks.add(RGB);
            this.setCheckboxKeys(cks);
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        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, 10, highlights, .05, true, format));

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

        if (type == typeV3 || type == typeV4) {
            addSliderKey(DEPTH);
            setSliderConfig(DEPTH, new SliderConfig(8, 64, depth, .05, false, format));
        }

        if (type == typeV4) {
            addSliderKey(FUZZ);
            setSliderConfig(FUZZ, new SliderConfig(0.1, 1, fuzz, .05, false, format));
        }
    }
View Full Code Here

Examples of com.lightcrafts.model.SliderConfig

        }

        addSliderKey(SOURCE);
        addSliderKey(TINT);

        setSliderConfig(SOURCE, new SliderConfig(1000, 40000, source, 10, true, new DecimalFormat("0")));
        setSliderConfig(TINT, new SliderConfig(-20, 20, tint, 0.1, false, new DecimalFormat("0.0")));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.