Package com.lightcrafts.model

Examples of com.lightcrafts.model.RenderingIntent


        RenderingIntent[] intents = RenderingIntent.getAll();
        for (RenderingIntent intent : intents) {
            renderingIntent.addItem(intent);
        }
        RenderingIntent intent = model.getRenderingIntent();
        renderingIntent.setSelectedItem(intent);

        Box box = createLabelCombo(LOCALE.get("IntentLabel"), renderingIntent);
        titlePanel.add(box);

        renderingIntent.addItemListener(
            new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        RenderingIntent intent =
                            (RenderingIntent) renderingIntent.getSelectedItem();
                        model.setRenderingIntent(intent);
                    }
                }
            }
View Full Code Here


        }
        renderingIntent.addItemListener(
            new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        RenderingIntent intent =
                            (RenderingIntent) renderingIntent.getSelectedItem();
                        settings.setRenderingIntent(intent);
                        engine.preview(settings);
                        Prefs.put(ProofIntentKey, intent.toString());
                    }
                }
            }
        );
    }
View Full Code Here

        for (RenderingIntent intent : intents) {
            renderingIntent.addItem(intent);
        }
        int code = options.renderingIntent.getValue();
        boolean bpc = options.blackPointCompensation.getValue();
        RenderingIntent intent = convertIntToRenderingIntent(code, bpc);
        renderingIntent.setSelectedItem(intent);

        renderingIntent.addItemListener(
            new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    if (e.getStateChange() == ItemEvent.SELECTED) {
                        WidePopupComboBox combo =
                            (WidePopupComboBox) e.getSource();
                        RenderingIntent intent =
                            (RenderingIntent) combo.getSelectedItem();
                        int code = convertRenderingIntentToInt(intent);
                        boolean bpc = convertRenderingIntentToBPC(intent);
                        options.renderingIntent.setValue(code);
                        options.blackPointCompensation.setValue(bpc);
View Full Code Here

    // Combine a ICC_Profile rendering intent code ("icPerceptual" etc.) with
    // a black-point-compensation flag to make a RenderingIntent.
    private static RenderingIntent convertIntToRenderingIntent(
        int code, boolean bpc
    ) {
        RenderingIntent intent;
        switch (code) {
            case icAbsoluteColorimetric:
                intent = RenderingIntent.ABSOLUTE_COLORIMETRIC;
                break;
            case icPerceptual:
View Full Code Here

TOP

Related Classes of com.lightcrafts.model.RenderingIntent

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.