Package com.lightcrafts.model

Examples of com.lightcrafts.model.LayerConfig


    }

    private void updateOperation() {
        final LayerMode mode = getMode();
        final double opacity = getOpacity();
        final LayerConfig config = new LayerConfig(mode, opacity);
        op.setLayerConfig(config);
        if (opacity == 1.0 && mode.getName().equals("Normal"))
            pcs.firePropertyChange(BLENDING_MODES, Boolean.TRUE, Boolean.FALSE);
        else
            pcs.firePropertyChange(BLENDING_MODES, Boolean.FALSE, Boolean.TRUE);
View Full Code Here


    public OperationType getType() {
        return type;
    }

    public LayerConfig getDefaultLayerConfig() {
        return new LayerConfig(new LayerModeImpl("Soft Light"), .75);
    }
View Full Code Here

    public OperationType getType() {
        return type;
    }

    public LayerConfig getDefaultLayerConfig() {
        return new LayerConfig(new LayerModeImpl("Soft Light"), .5);
    }
View Full Code Here

        add(Box.createHorizontalStrut(5));
        add(combinedBox);
        add(Box.createHorizontalStrut(5));

        // Initialize the combo and slider settings from Operation defaults:
        final LayerConfig config = op.getDefaultLayerConfig();
        setMode(config.getMode());
        setOpacity(config.getOpacity());

        // Install the combo and slider behaviors:
        final OpControl.OpControlUndoSupport undoSupport = control.undoSupport;
        combo.addActionListener(
            new ActionListener() {
View Full Code Here

        );
    }

    void operationChanged(Operation operation) {
        op = operation;
        final LayerConfig config = op.getDefaultLayerConfig();
        setMode(config.getMode());
        setOpacity(config.getOpacity());
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.model.LayerConfig

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.